Git cheat sheet

My most often forgotten git commands

A list of Git commands I can refer to for future use.

See remote branches

git branch -r

Clone remote with submodule

git clone <url> --recursive 

Removing a shallow git clone

git fetch --unshallow

Merging remote branch with local

git merge origin/<branchname>