yuval.guide
Adding more commits In the previous post we have created our first commit. It was a new file that we added to our repository let's add more commits: Add file2 that is already in the working directory Add another file, this time inside a directory a change in a file already there Adding more file Adding file2: 1$> 2$> …
Read MoreMaking sure you remember that we are talking about a local git repository here. That's right, that .git invisible directory, right inside your project directory. Locations Consider this cli listing: 1$> 2$> pwd 3/home/osboxes/my-project 4$> ls -la 5total 12 6drwxrwxr-x 3 osboxes osboxes 4096 Jan 22 11:24 . 7drwxr-x--- …
Read More(this is a walk-through, so prepare your computer and let's play around with git) Saving Versions in git This is the main thing in a version control system, isn't it? Let's say you have a project, so several files Installing git Git is basically a cli program, and the installation should not be too hard. Go to the …
Read MoreA short History of Git As always, the git-scm book (see below) does a great work about that here . To summarize: This is really the history of the creation of the Linux kernel In the early days.....changes to the software were passed around as patches and archived files. (remember that zip file from my story ?) In …
Read MoreWhat happened to me when I did a small, single-person home project (this story has not really happen..but it could) Here's what used to happen to me in the past, when I was trying to backup my code. I was working on my files in place A (that was some directory on my computer) To backup, I would zip all files, and move …
Read MoreInteractive courses Git Foundations — git in a real Linux machine in your browser: the working directory, the staging area and the repository; local and global configuration; commits and what a commit really contains; then branches, merging and rebasing. Everything local, with live checks. Git Collaboration — the …
Read MoreDoing logic with [[ and ]] (this topic is covered in the bash manual here ) Return a status of 0 or 1 depending on the evaluation of the bash conditional expressions example 1: is this a file? 1$> 2$> ls -l 3total 4 4-rw-rw-r-- 1 osboxes osboxes 6 Jan 21 08:39 myfile 5$> 6$> [[ -f myfile ]] 7$> echo $? 80 9$> [[ -f …
Read MorePipelines (this is covered in the bash manual here ) A pipeline is a sequence of one or more commands separated by one of the control operators: | or |& The output of each command in the pipeline is connected via a pipe to the input of the next command. (if you want you can read more about pipes ) These could be both …
Read MoreIntroduction intro Hello World Parameters Special Parameters File Streams Bash Logic 1: pipelines and lists Bash Logic 2: Doing logic with [[ and ]] Bash Arrays Bash Expansions: About Shell Expansions Brace Expansion Tilde Expansion parameter and variable expansion command substitution arithmetic expansion is base on …
Read Morestreams In UNIX, many things take the form of a stream of bytes. Real files are like that, because we can read the as a stream of bytes. Each process see a private list of streams that the process can access There is a number for each stream used: 0,1,2,3,4…. These numbers are called file descriptors The first 3 …
Read More