diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-08-24 14:18:02 -0700 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-08-24 14:18:02 -0700 |
commit | 7de2d71ea81da14fbbe14a4217c3a62cdcfde0a7 (patch) | |
tree | 014b504105deb2a5d88d25ebab21d4332e3ec9cb | |
parent | ceb59ac86065523b9306f3a05be7c5a4f44f61d3 (diff) | |
parent | 354963fd39631d9d57b5234b686c527d0d5f13c7 (diff) |
Merge branch 'master' of ssh://git-annex.branchable.com5.20150824
-rw-r--r-- | doc/forum/HowTo_Conflict_Resolution.mdwn | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/doc/forum/HowTo_Conflict_Resolution.mdwn b/doc/forum/HowTo_Conflict_Resolution.mdwn new file mode 100644 index 000000000..2e43efe69 --- /dev/null +++ b/doc/forum/HowTo_Conflict_Resolution.mdwn @@ -0,0 +1,66 @@ +Hello, + +I have two git annex repos, AA and BB in direct mode. Both have edited a binary file before syncing + +``` +~/Desktop/BB (git)-[annex/direct/master] % git annex sync +commit ok +pull origin +remote: Counting objects: 21, done. +remote: Compressing objects: 100% (17/17), done. +remote: Total 21 (delta 3), reused 0 (delta 0) +Unpacking objects: 100% (21/21), done. +From /home/florian/Desktop/AA + d55cfa2..b86e708 annex/direct/master -> origin/annex/direct/master + 83ff4c6..5cfbd34 git-annex -> origin/git-annex + d7b79e8..b86e708 master -> origin/master + d7b79e8..b86e708 synced/master -> origin/synced/master + +Auto-merging bin2 +CONFLICT (content): Merge conflict in bin2 +Auto-merging bin1 +CONFLICT (content): Merge conflict in bin1 +Automatic merge failed; fix conflicts and then commit the result. +bin2: needs merge +bin1: needs merge +(recording state in git...) + + Merge conflict was automatically resolved; you may want to examine the result. + +ok +(merging origin/git-annex into git-annex...) +(recording state in git...) +push origin +Counting objects: 31, done. +Delta compression using up to 4 threads. +Compressing objects: 100% (25/25), done. +Writing objects: 100% (31/31), 3.04 KiB | 0 bytes/s, done. +Total 31 (delta 6), reused 0 (delta 0) +To /home/florian/Desktop/AA + 83ff4c6..7df9834 git-annex -> synced/git-annex + b86e708..59a1240 annex/direct/master -> synced/master +ok +``` + +``` +florian@horus ~/Desktop/BB (git)-[annex/direct/master] % git annex get . +get bin1.variant-c4b6 (from origin...) ok +get bin2.variant-f16a (from origin...) ok +(recording state in git...) +florian@horus ~/Desktop/BB (git)-[annex/direct/master] % ll +insgesamt 5824 +-rw-r----- 1 florian florian 2863795 24. Aug 21:32 bin1.variant-1696 +-rw-r----- 1 florian florian 2841749 24. Aug 21:30 bin1.variant-c4b6 +-rw-r----- 1 florian florian 125612 24. Aug 21:32 bin2.variant-0efa +-rw-r----- 1 florian florian 126067 24. Aug 21:31 bin2.variant-f16a + +``` +How can I resolve this conflict now? Is there a way to tell which bin1 / bin2 is from AA, which from BB? Is there a way to tell git annex to completely take the data from AA or BB? + +This case might appear somehow artifical but I was caught in that various times when syncing my music database. Actually I didn't care which version of the database it took, but I was unable to produce a coherent data set, so that the database files only come from one sync partner. + +I did the git annex get after syncing, becaue usually I sync using --content. + +Thanks, +Florian + |