Skip to content

Instantly share code, notes, and snippets.

@19h47
Last active September 17, 2017 08:41
Show Gist options
  • Save 19h47/7df5a79130495f18e4eff28e37611d42 to your computer and use it in GitHub Desktop.
Save 19h47/7df5a79130495f18e4eff28e37611d42 to your computer and use it in GitHub Desktop.
Git

add

This command updates the index using the content found in the working tree.

git add name/of/our/file

git-add

commit

push

pull

status

git status

git-status

diff

Show differences between commits.

git diff

To show only file name, use option --name-only

git diff --name-only

git-diff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment