Blog
Archive for the Git Category
Continuous Integration Info
Merging smaller commits frequently, instead of waiting until a project is “done” and doing one big merge.
This means
Read more…
Git Rebase and Amend
Posted on September 2, 2020 in Git by Matt Jennings
Amend a Commit
Amend is a shortcut that lets you make changes to the previous commit
Example code to add a file
Read more…
Merge Commits
Commits that have more than one parent
Merge Commit Example Code
git cat-file -p c539b61
tree 3740b67563058ba5a8ca39db2fa782e94ad24f1b
parent 5a07a807828c0321472b61bf45fc228bef134d4b
parent 7f5eff26f7cb97e10d201189cc77bb25fc4bd1d1
author Matt Jennings <matt@nullmattjennings.net>
Read more…
Local Destructive Operations
git checkout — <file>
If the file is present in the staging area, it’ll be overwritten.
git reset –hard
Will overwrite
Read more…
GitHub vs Git
Git
Open source version control software
GitHub
Repository hosting
Pull requests
Forks
Remotes
A remote is a git repository that is stored somewhere else –
Read more…
To Top ↑