Fork us on GitHub Follow us on Facebook Follow us on Twitter

Version 3 (modified by Jiri Svoboda, 5 years ago) (diff)

Adding modified files

Git Cheat Sheet

Print default push/pull location

git remote -v

Add modified files to staging area

git add -u

Unstage a staged file

git reset HEAD <file>

Revert file changes

git checkout -- <file>

Ammend the last commit

git commit --ammend