Blog

Archive for the Git Category


Fixing Git Mistakes
Posted on August 31, 2020 in Git by Matt Jennings

What Happens when you Git Checkout a Branch?

Change HEAD to point to the new branch
Copy the commit snapshot to the
Read more…


Git History and Diffs
Posted on August 30, 2020 in Git by Matt Jennings

How to do Multi Line Commit Messages in Git

In your terminal, just hit ‘enter’ for a new line:

$ git commit
Read more…


Git References, Commits, and Branches
Posted on August 30, 2020 in Git by Matt Jennings

References

They are pointers to commits.

Three Types of Git References

Tags and Annotated Tags
Branches
HEAD

What is Head?

HEAD is how git knows what branch you’re
Read more…


Git Cherry Picking
Posted on August 28, 2020 in Git by Matt Jennings

Definition

Cherry picking in Git means to choose a commit from one branch and apply it onto another.

Example

I have two branches,
Read more…


Git Areas and Stashing
Posted on August 28, 2020 in Git by Matt Jennings

The information below is from Git Foundations chapter of Git In-depth.

Three Areas Where Code Lives

Work Area (Work Tree)
Staging Area
Read more…

To Top ↑