Blog
Archive for the Git Category
Fixing Git Mistakes
Posted on August 31, 2020 in Git by Matt Jennings
Change HEAD to point to the new branch
Copy the commit snapshot to the staging area (also called the index)
Update the …
Read more
In your terminal, just hit ‘enter’ for a new line:
$ git commit -m “1. what i changed
> 2. blank line
> …
Read more
They are pointers to commits.
Tags and Annotated Tags
Branches
HEAD
HEAD is how git knows what branch you’re currently on, and what the next …
Read more
Git Cherry Picking
Posted on August 28, 2020 in Git by Matt Jennings
Cherry picking in Git means to choose a commit from one branch and apply it onto another.
I have two branches, …
Read more
The information below is from Git Foundations chapter of Git In-depth.
Work Area (Work Tree)
Staging Area (Cache or Index)
Repository
Called untracked files.
Files …
Read more