Skip to content

Instantly share code, notes, and snippets.

@AmilKey
Created February 24, 2017 09:09
Show Gist options
  • Save AmilKey/9d040dfb0400bc942a428cd32184b9b0 to your computer and use it in GitHub Desktop.
Save AmilKey/9d040dfb0400bc942a428cd32184b9b0 to your computer and use it in GitHub Desktop.
to discard local commits
Your branch is ahead of 'origin/master' by 3 commits.
will remove all commits not in origin/master where origin is the repo name and master is the name of the branch.
git reset --hard origin/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment