Blog

Author Archive


Git Rebase and Amend
Posted on September 2, 2020 in Git by Matt Jennings

Amend is a shortcut that lets you make changes to the previous commit
Example code to add a file to the …

Read more


Git Merge Merging and ReReRe
Posted on September 2, 2020 in Git by Matt Jennings

Commits that have more than one parent

git cat-file -p c539b61

tree 3740b67563058ba5a8ca39db2fa782e94ad24f1b
parent 5a07a807828c0321472b61bf45fc228bef134d4b
parent 7f5eff26f7cb97e10d201189cc77bb25fc4bd1d1
author Matt Jennings <050906352e09201c1c1824000a28060f016f000135> 1598825747 -0700
committer Matt Jennings …

Read more


Git Destructive Operations and Recovering Lost Work
Posted on September 1, 2020 in Git, GitHub by Matt Jennings

git checkout — <file>
If the file is present in the staging area, it’ll be overwritten.
git reset –hard
Will overwrite changes that …

Read more


GitHub Forks and Remote Repositories
Posted on September 1, 2020 in Git, GitHub by Matt Jennings

Git

Open source version control software

GitHub

Repository hosting
Pull requests
Forks

A remote is a git repository that is stored somewhere else – on the …

Read more


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