My Git-Fu needs help. rm -r undo -
My Git-Fu needs help. rm -r undo -
switched directories, though bunch of other changes on branch, rm -r entire app/ directory, i'm screwed.
https://github.com/geerswitch/penbuilders/commit/20c5111364f0c8369669d2347d35f4b83371e6fb
see branch there? see 2k+ deletions? suck @ git.
i've tried resetting head, resetting previous commit hashes, , still, files aren't back.
can save me? ls-files --deleted shows nothing, can see them in link above, , copy+paste if have to.
the files still there, short of wiping entire github repository can them back. seek git revert
:
git revert 20c51
this create new commit reverses changes in commit 20c51
. safest approach since not rewrite of existing history. it's preferred approach if working collaborators.
on other hand, if want "play fire" can git rebase --interactive 20c51~1
, edit
offending commit(s). alter history , can cause lose existing work if not used carefully.
git
Comments
Post a Comment