Today we will learn to merged popped stash.
When you want to reapply your changes but you already continued working on your file, you might get a merge conflict! Let's practise this situation.
Pop the changes from the stash with git stash pop
and resolve the merge conflict. Commit the resolved changes and clear the stash stack afterwards.
- recipe
- Did you resolve the confict and commit?
- Did you clear stash stack?
- Check out the stash list.
git stash list
- Pop the stash item.
git stash pop
- Edit the files necessary to commit.
# Edit files
nvim recipe
# Add the file and commit it
git add .
git commit -m "updated"
- Clear out the stash list.
git stash clear