Changes between Version 24 and Version 25 of DeveloperGuidelines/Git
- Timestamp:
- 01/26/12 01:45:00 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Git
v24 v25 53 53 git pull upstream master 54 54 git checkout -b <mystory> 55 # Write Code 55 56 git commit -am "My Story" 56 57 # Quick review of code (no test code left in, etc) … … 69 70 }}} 70 71 71 To resolve merge conflicts, you can create the .THIS & .OTHER files using: 72 === Resolving Merge Conflicts === 73 You can create the .THIS & .OTHER files using: 72 74 {{{ 73 75 git show :2:file.txt > file.txt.THIS 74 76 git show :3:file.txt > file.txt.OTHER 75 77 }}} 76 78 Alternatively you can use the changes in your remote branch (theirs / OTHER): 79 {{{ 80 git checkout --theirs . # checkout our local version of all files 81 git add -u # mark all conflicted files as merged 82 git commit # commit the merge 83 }}} 84 Or the changes in your local branch (ours / THIS) 85 {{{ 86 git checkout --ours . # checkout our local version of all files 87 git add -u # mark all conflicted files as merged 88 git commit # commit the merge 89 }}} 77 90 Although on Windows this seems by default to produce UTF-16 files! ('UCS-2 Little Endian'). A script to make this process easier for Windows users is attached: [http://eden.sahanafoundation.org/attachment/wiki/DeveloperGuidelines/Git/merge.cmd merge.cmd] 78 91 === Developer Configuration ===