visual studio - How to retain git check in history before specific commit? -
need git checking history visual studio saves commit. 1 of team member pushed code again removed history. way history before commit ?
this little unclear, because there's no reason why "pushing code" should wipe history. sounds coworker performed force push (perhaps because didn't understand needed pull , merge before pushing).
if local repo had history, history should still there. easiest way access may via reflog. try
git reflog
it show recent commits you've had checked out, 1 per line. if can find 1 original history, can check out, such
git checkout head@{1}
(the reflog output tell number use retrieve given commit).
you might able use branch-specific reflog
git reflog master ... git checkout master@{2}
the reflog not shared, individual clone has seen history want retrieve can this.
Comments
Post a Comment