Git hard remove last commit
git reset –hard HEAD~1
git reset –hard HEAD~1
git diff composer.json
git branch –set-upstream-to=origin/branchname
git diff master 0.2 git diff 0.1 0.2
git reset –hard origin/master
git push -f origin myremotebranch git push -f myprivate master:master git push -f
git reset –hard origin/master
export GIT_SSL_NO_VERIFY=1
git checkout new-master git branch -m master old-master git branch -m new-master master
If you want to rename a branch while pointed to any branch, simply do : git branch -m oldname newname If you want to rename the current branch, you can simply do: git branch -m newname