mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-22 23:06:59 +03:00
44 lines
724 B
Plaintext
44 lines
724 B
Plaintext
[description]
|
|
|
|
(This is not a real puzzle yet.)
|
|
|
|
Try merging the two branches together!
|
|
|
|
git merge <otherbranch>
|
|
|
|
[setup]
|
|
|
|
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
|
|
|
|
[setup goal]
|
|
|
|
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
|
|
|
|
git merge alternative
|
|
echo blue-green > bikeshed_color
|
|
git add .
|
|
git commit -m "Merge"
|
|
git prune
|