git checkout your_branch git log –oneline 98eba8e Wrong commitcc860f6 Wrong commit6ebe41c Wrong commitfb16584 Ok commit038bcd1 Ok commit Reset to latest ok commit: git reset –hard fb16584 git push origin your_branch –force
Tag: git
Git commit to new branch
$ git checkout -b new_branch $ git status $ git add . $ git commit -m “Message” $ git push –set-upstream origin new_branch (or $ git push and copy paste the suggestion)
Git checkout tag
Change HTTPS to SSH remote url, GitHub
https://github.com/OWNER/REPOSITORY.git Yey!