Changes between Version 7 and Version 8 of GitTips


Ignore:
Timestamp:
03/26/2010 06:19:37 PM (14 years ago)
Author:
andar
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GitTips

    v7 v8  
    7474git rm --cached <files> 
    7575}}} 
     76 
     77== Merging a remote branch == 
     78 
     79First, add the repo: 
     80{{{ 
     81#!sh 
     82git remote add <reponame> <location> 
     83}}} 
     84 
     85Now fetch in the changes: 
     86{{{ 
     87#!sh 
     88git fetch <reponame> 
     89}}} 
     90 
     91You'll want to do a diff against your branch to see what will be merged: 
     92{{{ 
     93#!sh 
     94git diff master <reponame>/<branch> 
     95}}} 
     96 
     97If you're happy with the changes, go ahead and merge it: 
     98{{{ 
     99#!sh 
     100git merge <reponame>/<branch> 
     101}}}