Skip to content

Instantly share code, notes, and snippets.

@AmilKey
Created February 24, 2017 09:09

Revisions

  1. AmilKey created this gist Feb 24, 2017.
    5 changes: 5 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    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