This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
== 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git checkout master | |
git merge branchname | |
git pull --rebase | |
(If conflict, resolve conflict: | |
git add . | |
git rebase --continue | |
) | |
git push |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd myproject | |
$ git checkout myBranch | |
$ git push -u origin myBranch | |
# In some cases -u showed as invalid argument, so use this | |
$ git push origin <local name> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git clone git://example.com/myproject | |
$ cd myproject | |
$ git branch -a | |
$ git checkout -b experimental origin/experimental | |