Stash and apply

Report a typo

In this repository, a file named file.txt is created with the content "Original content". This version is committed. Later, file.txt is modified so that it now contains: "Modified content".

Your task is to:

  • Add the changes to the staging area.

  • Stash the changes (which will remove them from the working tree).

  • Then apply the stash so that file.txt once again reflects the modifications.

Write your Git command(s) below line by line.

Write a program
# Write your Git command(s) below line by line

Create a free account to access the full topic