Skip to content

Instantly share code, notes, and snippets.

@deniseileen
deniseileen / git-commands.md
Last active September 26, 2018 14:31
Basic git commands

Reviewing your changes

git log --graph shows all commits

git grep "foo()" search working directory for "foo()"

git diff shows changes to local branch, include a filename to see only changes to a particular file, or HEAD to compare your branch to HEAD

git branch -a shows all branches, local and remote (leaving off -a shows only local branches