Skip to content

Instantly share code, notes, and snippets.

@kazuho
Created March 27, 2014 04:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kazuho/9800525 to your computer and use it in GitHub Desktop.
Save kazuho/9800525 to your computer and use it in GitHub Desktop.
switch from master to wip, then undo the switch
$ git status
# On branch master
nothing to commit, working directory clean
$ unco record --log=/tmp/unco.log git checkout wip
Switched to branch 'wip'
$ git status
# On branch wip
nothing to commit, working directory clean
$ unco revert --log=/tmp/unco.log --run
$ 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