Arjun Suresh (talk | contribs) |
|||
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] | ||
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>