Skip to content

Instantly share code, notes, and snippets.

@shyamkkhadka
Created October 30, 2010 02:27
Show Gist options
  • Save shyamkkhadka/654825 to your computer and use it in GitHub Desktop.
Save shyamkkhadka/654825 to your computer and use it in GitHub Desktop.
== Assume you are working on branch called "mytestbranch" and now you want to commit
$ git add .
$ git commit -m "My commit message"
$ git checkout master
$ git merge mytestbranch
$ git pull --rebase
== if conflict,
== resolve conflict:
$ git add .
$ git rebase --continue
== end conflict resolve
$ git push
$ git checkout "mynewbranch"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment