How do I undelete a file after git rm and pushing to github? -
i cloned repository on local machine , did git remove on 1 of files , pushed changes github repository. question how restore file on original github repository?
if can find previous commit abcd
has deleted file, can use
git checkout abcd file-to-restore
to restore it. you'll need commit file again.
Comments
Post a Comment