Restore git submit history from github -
a disgruntled developer left project sabotaged git repository , have been brought on. unsure did here facts:
- there full commit history in github before , know sha of commit want make current head
- i can view commit buy using sha in github url: https://github.com/[user]/[project]/tree/d5f7068fcef33791418e3e1d2b954162403e7c8b
when check out project locally not pull in history other last commit made blank readme file:
$ git log commit 4cbfb43f76a41df6de6f66354566377c2ef2ab0d author: author date: sun sep 1 20:39:47 2013 +0300 initial
i cannot rebase because local repo doesn't know commit sha because 1 commit comes down github. history want seems orphaned.
is there way check out other commit via sha directly github (origin) , make head point that?
any other ideas?
you should able git merge <sha>
, which, because bad dev did rebase, complain, given rebased initial commit, sounds solving conflict relatively easy.
if local repository doesn't know commit -- remote 1 -- try making new clone of remote repository , seeing if commit you're looking there. far understand git, if commit present remotely, , clone repository, should able access commit.
Comments
Post a Comment