I am new to git. I have checkout files from remote. I had to delete few files from the git repo. Instead of doing git rm
command, I issued unix rm -rf folder
command. I need to revert the delete command and then perform git rm
command. How to revert to the latest code?
Note: I have not yet committed the staged files.The out out of git status
is the list of files deleted in the below format:
# deleted: i18n/angular-locale_sl.js
# deleted: i18n/angular-locale_in.js
git status
? – Zymometergit rm -r i18n
, orgit add -A i18n
, orgit add --all i18n
. – Zymometer