Arjun Suresh (talk | contribs) |
|||
(One intermediate revision by one other user not shown) | |||
Line 30: | Line 30: | ||
*Merges a branch with the current branch | *Merges a branch with the current branch | ||
git merge <branchname> | git merge <branchname> | ||
+ | |||
+ | [https://git-scm.com/docs More documentation] | ||
Line 36: | Line 38: | ||
<div class="fb-share-button" data-type="button_count"></div> | <div class="fb-share-button" data-type="button_count"></div> | ||
+ | |||
+ | |||
<disqus/> | <disqus/> | ||
[[Category:Technical]] | [[Category:Technical]] |
git init
git remote add <name> <url>
git pull <name> serverbranch:localbranch
git add <filename>
git commit -m "<commit message>"
git push <name> localbranch:serverbranch
git checkout <branchname>
git checkout -b <branchname>
git branch
git merge <branchname>
git init
git remote add <name> <url>
git pull <name> serverbranch:localbranch
git add <filename>
git commit -m "<commit message>"
git push <name> localbranch:serverbranch
git checkout <branchname>
git checkout -b <branchname>
git branch
git merge <branchname>