Skip to content

Instantly share code, notes, and snippets.

@barthflo
Created September 17, 2020 10:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barthflo/c7e010127b3f572a393be58502aa0b38 to your computer and use it in GitHub Desktop.
Save barthflo/c7e010127b3f572a393be58502aa0b38 to your computer and use it in GitHub Desktop.
WCS - Git/GitHUB 5 - Merge & Conflicts
flo@kubuntu:~/Documents/Wild Code School/quests/Git/merge-conflicts$ git pull
Auto-merging README.md
CONFLICT (content): Merge conflict in README.md
Automatic merge failed; fix conflicts and then commit the result.
flo@kubuntu:~/Documents/Wild Code School/quests/Git/merge-conflicts$ git status
On branch master
Your branch and 'origin/master' have diverged,
and have 1 and 1 different commits each, respectively.
(use "git pull" to merge the remote branch into yours)
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: README.md
no changes added to commit (use "git add" and/or "git commit -a")
flo@kubuntu:~/Documents/Wild Code School/quests/Git/merge-conflicts$ git commit -a -m "resolved conflicts"
[master 1ba3ca1] resolved conflicts
flo@kubuntu:~/Documents/Wild Code School/quests/Git/merge-conflicts$ git pull
Already up to date.
flo@kubuntu:~/Documents/Wild Code School/quests/Git/merge-conflicts$ git push origin master
Enumerating objects: 8, done.
Counting objects: 100% (8/8), done.
Delta compression using up to 2 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 399 bytes | 399.00 KiB/s, done.
Total 4 (delta 2), reused 0 (delta 0)
remote: Resolving deltas: 100% (2/2), completed with 1 local object.
To https://github.com/barthflo/merge-conflicts.git
98c8890..1ba3ca1 master -> master
flo@kubuntu:~/Documents/Wild Code School/quests/Git/merge-conflicts$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment