(2 intermediate revisions 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 37: Line 39:
 
<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]]

Latest revision as of 17:29, 2 March 2016


  • 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>

More documentation




blog comments powered by 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>