Skip to content

git Tips for Developers

CortexPE edited this page Sep 28, 2017 · 5 revisions
Sync your local Repository to the remote one git fetch origin && git reset --hard origin
Revert the last commit (only one commit) git revert HEAD
Revert multiple commits Example:
    Reverting Commits after 45f4085
git reset --hard 45f4085 && git reset --soft @{1} && git commit -m "Revert"
Sync foo branch to master git rebase master foo && git push origin foo
Clone this wiki locally