Guest User

Untitled

a guest
Feb 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. Last login: Sat Jul 26 20:54:27 on ttys007
  2. ~ $ mkdir git-bug
  3. ~ $ cd git-bug/
  4. ~/git-bug $ git init
  5. Initialized empty Git repository in /Users/rich/git-bug/.git/
  6. ~/git-bug $ echo "test line one" > readme
  7. ~/git-bug $ git add readme
  8. ~/git-bug $ git commit -a -m "one"
  9. Created initial commit 541fc1d: one
  10. 1 files changed, 1 insertions(+), 0 deletions(-)
  11. create mode 100644 readme
  12. ~/git-bug (git::master) $ git checkout -b conflict
  13. Switched to a new branch "conflict"
  14. ~/git-bug (git::conflict) $ echo "more text" > readme
  15. ~/git-bug (git::conflict) $ cat readme
  16. more text
  17. ~/git-bug (git::conflict) $ git commit -a -m "first in conflict branch"
  18. Created commit 7928b0b: first in conflict branch
  19. 1 files changed, 1 insertions(+), 1 deletions(-)
  20. ~/git-bug (git::conflict) $ git checkout master
  21. Switched to branch "master"
  22. ~/git-bug (git::master) $ echo "a conflict" > readme
  23. ~/git-bug (git::master) $ git commit -a -m "and here's our conflict"
  24. Created commit 5ce7f01: and here's our conflict
  25. 1 files changed, 1 insertions(+), 1 deletions(-)
  26. ~/git-bug (git::master) $ git checkout conflict
  27. Switched to branch "conflict"
  28. ~/git-bug (git::conflict) $ git rebase master
  29. First, rewinding head to replay your work on top of it...
  30. Applying first in conflict branch
  31. error: patch failed: readme:1
  32. error: readme: patch does not apply
  33. Using index info to reconstruct a base tree...
  34. Falling back to patching base and 3-way merge...
  35. Auto-merged readme
  36. CONFLICT (content): Merge conflict in readme
  37. Failed to merge in the changes.
  38. Patch failed at 0001.
  39.  
  40. When you have resolved this problem run "git rebase --continue".
  41. If you would prefer to skip this patch, instead run "git rebase --skip".
  42. To restore the original branch and stop rebasing run "git rebase --abort".
  43.  
  44. ~/git-bug (git::(no branch)) $ cat readme
  45. <<<<<<< HEAD:readme
  46. a conflict
  47. =======
  48. more text
  49. >>>>>>> first in conflict branch:readme
  50. ~/git-bug (git::(no branch)) $ echo "a conflict" > readme
  51. ~/git-bug (git::(no branch)) $ cat readme
  52. a conflict
  53. ~/git-bug (git::(no branch)) $ git add readme
  54. ~/git-bug (git::(no branch)) $ git rebase --continue
  55. Applying first in conflict branch
  56. No changes - did you forget to use 'git add'?
  57.  
  58. When you have resolved this problem run "git rebase --continue".
  59. If you would prefer to skip this patch, instead run "git rebase --skip".
  60. To restore the original branch and stop rebasing run "git rebase --abort".
  61.  
  62. ~/git-bug (git::(no branch)) $ echo "" >> readme
  63. ~/git-bug (git::conflict) $ cat readme
  64. a conflict
  65.  
  66. ~/git-bug (git::(no branch)) $ git add readme
  67. ~/git-bug (git::(no branch)) $ git rebase --continue
  68. Applying first in conflict branch
  69. ~/git-bug (git::conflict) $
Add Comment
Please, Sign In to add comment