From a17d74cf5b35ab082ce834f467934a2ad4ecca72 Mon Sep 17 00:00:00 2001 From: Gary Macbook Date: Thu, 19 Nov 2015 14:29:28 +0100 Subject: [PATCH] Revert "overwriting file with "foo"" This reverts commit ee4cc7eb33adae803bb6ab74c04821c1f13546dc. --- test1.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test1.txt b/test1.txt index 257cc56..a93cf0d 100644 --- a/test1.txt +++ b/test1.txt @@ -1 +1,7 @@ -foo +This will be my test file. User2 has added some text. User2 add some more text. USER1 non-conflict edit. USER1 edit again. + +The second line USER2 ADDED TEXT will be the one that should trigger a conflict. + +The thrid line will remain unchanged. USER2 non-conflict text. USER2 edit again. + +User2 is going to just add a line, then he will want to regect all of user1's changes and put his version back into the repository. There is probably a fancy and super-complicated "git merge" way of doing this, but since it probably won't come up very often, I would suggest you just manually make a backup of the file, do a pull, overwrite the new file, and do a commit. -- 2.25.1