Line 31: Line 31:
 
  git merge <branchname>
 
  git merge <branchname>
  
 +
 +
<div class="fb-like"  data-layout="standard" data-action="like" data-show-faces="false" data-share="true"></div>
 +
 +
 +
<div class="fb-share-button"  data-type="button_count"></div>
 +
 +
</disqus>
  
 
[[Category:Technical]]
 
[[Category:Technical]]

Revision as of 22:54, 2 December 2013


  • Initializes a git repository on the current folder
git init
  • Add a remote git repository
git remote add <name> <url>
  • Fetches a remote git branch
git pull <name> serverbranch:localbranch
  • Adds a new file to git
git add <filename>
  • Saves the new changes to the git branch(local)
git commit -m "<commit message>"
  • Pushes the local branch to the server
git push <name> localbranch:serverbranch
  • Switches to a new branch
git checkout <branchname>
  • Creates and switches to a new branch
git checkout -b <branchname>
  • See all the merges
git branch
  • Merges a branch with the current branch
git merge <branchname>



</disqus>


  • Initializes a git repository on the current folder
git init
  • Add a remote git repository
git remote add <name> <url>
  • Fetches a remote git branch
git pull <name> serverbranch:localbranch
  • Adds a new file to git
git add <filename>
  • Saves the new changes to the git branch(local)
git commit -m "<commit message>"
  • Pushes the local branch to the server
git push <name> localbranch:serverbranch
  • Switches to a new branch
git checkout <branchname>
  • Creates and switches to a new branch
git checkout -b <branchname>
  • See all the merges
git branch
  • Merges a branch with the current branch
git merge <branchname>



</disqus>