Skip to content

Files

Latest commit

 Cannot retrieve latest commit at this time.

History

History

Day 30

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Apr 29, 2024

Day 30

Today we will learn to merged popped stash.

Problem Statement:

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.

Files:

  • recipe

Questions:

  • Did you resolve the confict and commit?
  • Did you clear stash stack?

Description of the problem.

Solution:

  1. Check out the stash list.
git stash list
  1. Pop the stash item.
git stash pop
  1. Edit the files necessary to commit.
# Edit files
nvim recipe

# Add the file and commit it
git add .
git commit -m "updated"
  1. Clear out the stash list.
git stash clear

Description of the solution.