If I cherry pick a commit and after that I run
git reset --soft HEAD~1
command and have all files in stageing area.
If I run git reset HEAD
I'll get the file in working directory.
How can I completely got rid of a file from tracking and get it up to date ?
CodePudding user response:
Use git checkout -- <filepath>
to reset all changes in said file, and restore it as it is on HEAD
(last commit on current branch)