Changes between Version 7 and Version 8 of GitTips
- Timestamp:
- 03/26/2010 06:19:37 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GitTips
v7 v8 74 74 git rm --cached <files> 75 75 }}} 76 77 == Merging a remote branch == 78 79 First, add the repo: 80 {{{ 81 #!sh 82 git remote add <reponame> <location> 83 }}} 84 85 Now fetch in the changes: 86 {{{ 87 #!sh 88 git fetch <reponame> 89 }}} 90 91 You'll want to do a diff against your branch to see what will be merged: 92 {{{ 93 #!sh 94 git diff master <reponame>/<branch> 95 }}} 96 97 If you're happy with the changes, go ahead and merge it: 98 {{{ 99 #!sh 100 git merge <reponame>/<branch> 101 }}}