I’m getting a little tired of having to sporadically Google the same old git questions because they don’t come up often enough to stick in memory.

So, I’m creating a cheat sheet. Yes, there are other cheat sheets out there, but I think it is a good exercise to build my own.

It’ll start small and grow over time.

Dr. Martell’s Git Cheat Sheet
Merge remote branch to local branch.
Sometimes I am working on a branch and I know that I will need to test it against code that is pending PR. In that case I like to merge to my local branch without leaving it.
git fetch origin BRANCHNAME
then
git merge origin/BRANCHNAME
Git Cheat Sheet

Last modified: August 13, 2020

Author