Published Aug 23, 2023
[
 
]
git restore pathTo/MyFile
The above will restore MyFile on HEAD (the last commit) on the current branch.