Hands-on task
This task is step 3 of the course “Everyday Git”
Unstage a file while keeping the edits
In the repository /root/repo the file file.txt has been modified (it now says modified) and is already staged (git add). Unstage it so that nothing is left in the staging area, but the edits themselves in the working tree are preserved (the content of file.txt must stay modified).
Reference:git
What you'll practise:
- git
- git reset
- --mixed
- unstage
- index