Skip to content

Instantly share code, notes, and snippets.

Created August 30, 2016 08:35
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 anonymous/6b989dbc4217d5f145b9687a96450a2a to your computer and use it in GitHub Desktop.
Save anonymous/6b989dbc4217d5f145b9687a96450a2a to your computer and use it in GitHub Desktop.
[made my commit....]
$ git push origin bv-deploy
Everything up-to-date
$ git branch
bv-deploy
deploy
* master
[oh shit I'm on the wrong branch...]
$ git checkout bv-deploy
Switched to branch 'bv-deploy'
[oh shit^2 all my changes are gone]
$ git branch
* bv-deploy
deploy
master
$ git push origin bv-deploy
Everything up-to-date
$ git status
On branch bv-deploy
nothing to commit, working directory clean
$ git checkout master
Switched to branch 'master'
$ git merge bv-deploy
Already up-to-date.
$ git merge --strategy=ours bv-deploy
Already up-to-date.
$ git branch
bv-deploy
deploy
* master
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment