Skip to content

Latest commit

 

History

History
 
 

merge-conflict

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Git Kata: Merge Conflict

Setup:

  1. Run source setup.sh (or .\setup.ps1 in PowerShell)

The task

In this kata git cannot figure how to merge the content added on merge-conflict-branch1 with the content on master.

Both changes need to be in master when you're done.

  1. Use git merge to bring the changes from merge-conflict-branch1 on to master.
  2. What does git status now report.
  3. Fix the conflict with your favorite editor.
  4. Follow the instructions in git status to complete the merge.
  5. What does git log --oneline --graph show?

Relevant commands

  • git merge
  • git status
  • git add
  • git commit
  • git log --oneline --graph