Let's look at a few ways to restore a deleted file, depending on how ... the "--hard" option means the command will discard changes to tracked files after ...
The output tells you what you need to do. git reset HEAD cc.properties etc. This will unstage the rm operation. After that, running a git status ...
How to Restore a Previously Deleted File from a Git Repository
Find the last commit that affected the given path. As the file isn't in the HEAD commit, this commit must have deleted it. git rev-list -n 1 HEAD ...
If you're using Git and accidentally delete your work, don't despair!
Restore the working tree files with the content from the given tree.
Put any files in the Unversioned Files changelist under version
Unlike version control systems, which only keep track of the differences
command, since it's designed to remove files from your working directory that are not tracked.
Find and restore a deleted file in a Git repository, Let's look at a few ways to restore a deleted file, depending on how will discard changes to tracked files after ...