mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-20 16:20:18 +01:00
Simplify solution for level 'stash-merge' by adding recipe to index
If recipe isn't part of index, user receives an error warning that local changes to file would be overwritten by merge when executing `git stash pop`. Since the focus of this lesson is learning about popping the stash, starting with recipe already added to index neatly sidesteps this error.
This commit is contained in:
parent
ec9b467cc6
commit
fd1a770a94
1 changed files with 1 additions and 0 deletions
|
@ -35,6 +35,7 @@ git stash push
|
|||
echo "- Pinch of Salt" >> recipe
|
||||
|
||||
git checkout main
|
||||
git add recipe
|
||||
|
||||
[win]
|
||||
|
||||
|
|
Loading…
Reference in a new issue