mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-24 16:20:08 +01:00
Merge conflict level
This commit is contained in:
parent
7df489baf8
commit
d71acccb38
2 changed files with 15 additions and 0 deletions
3
levels/conflict/description
Normal file
3
levels/conflict/description
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
Try merging the two branches together!
|
||||||
|
|
||||||
|
git merge <otherbranch>
|
12
levels/conflict/start
Normal file
12
levels/conflict/start
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
echo ? > bikeshed_color
|
||||||
|
git add .
|
||||||
|
git commit -m "Initial commit"
|
||||||
|
|
||||||
|
echo green > bikeshed_color
|
||||||
|
git commit -a -m "My suggestion"
|
||||||
|
|
||||||
|
git switch -c alternative HEAD^
|
||||||
|
echo blue > bikeshed_color
|
||||||
|
git commit -a -m "This is way better"
|
||||||
|
|
||||||
|
git switch main
|
Loading…
Reference in a new issue