Skip to content

Instantly share code, notes, and snippets.

@jgeewax
Created August 20, 2010 23:38
Show Gist options
  • Select an option

  • Save jgeewax/541450 to your computer and use it in GitHub Desktop.

Select an option

Save jgeewax/541450 to your computer and use it in GitHub Desktop.
(master)jj@im-jj:~/demo$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 2 commits.
#
nothing to commit (working directory clean)
(master)jj@im-jj:~/demo$ git branch feature1
(master)jj@im-jj:~/demo$ git reset --hard origin/master
HEAD is now at 4834481 Merge branch 'rc-1.0'
(master)jj@im-jj:~/demo$ git status
# On branch master
nothing to commit (working directory clean)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment