Some Git Commands Posted on Sep 15 2013 | In Git | 123456789101112131415 git config --global color.ui true # support color global.git reset --hard 89428ab23e4bd3028c95b4b4064075b3901654a3 # reset HEAD, index and working treegit branch -a # List both remote-tracking branches and local branches.git branch backups # new branch backups.git push origin backups:backups # push local branch to remote branch.git push origin :backups # delete remote branch backups.git branch -d backups # delete local branch backups. 1234567git commit -m 'commit data' #forgin a file.git add another_file # add the file.git commit --amend # commit again.