This wiki has undergone a migration to Confluence found Here
<meta name="googlebot" content="noindex">

GIT conflict resolution documentation

From HL7Wiki
Revision as of 04:05, 17 June 2019 by GrahameGrieve (talk | contribs) (Created page with "== set up == git fetch origin git checkout [branch] git merge origin/master git status > You have unmerged paths. > (fix conflicts and run "git commit") > (u...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

set up

 git fetch origin
 git checkout [branch]
 git merge origin/master
 git status
 > You have unmerged paths.
 >  (fix conflicts and run "git commit")
 >  (use "git merge --abort" to abort the merge)
 >
 > Unmerged paths:
 >  (use "git add <file>..." to mark resolution)  
 >
 >    both modified:   ...

fix

fix the file, or grab that least from master

grabbing the file from master

 git checkout --theirs [path]

committing

 git add [path]
 git commit -m "Fix [path] conflict"
 git push