git rename most recent commit
git commit –amend -m "an updated commit message"
git commit –amend -m "an updated commit message"
git reset — path/to/file git checkout — path/to/file
git reset –hard origin/master
git format-patch -1 SHA5
gitk /path/to/file
git remote show origin git ls-remote –heads | grep 1234
Use gitk to find out which commit you want to rollback and do the following: git reset –hard 53c309929253a2a
git checkout -b new_branch_name
git push origin –delete feature/login git push origin :feature/login