Friday 15 February 2013

How to get back the files removed with `git rm -r -f`? -



How to get back the files removed with `git rm -r -f`? -

i did

git rm -f -r

thinking files from index removed have been removed folder.

how files back?

if working directory still exists , contains .git subdirectory can utilize git reset --hard head , re-create working directory current git commit indicated head.

your problem looks in adding upstream have added argument. need:

git remote set-url origin https://...

or

git remote add together origin https://....

git

No comments:

Post a Comment