Skip to content
Discussion options

You must be logged in to vote

Discussion Type

Product Feedback

Discussion Content

Select Topic Area

General Feature Area

Issues Body

a friend commited our final project to a main branch of a shared repository but then the commits of the other contributors was lost can fast can we recover them Guidelines

I have read the above statement and can confirm my post is relevant to the GitHub feature areas [Issues](https://docs.github.com/en/issues/tracking-your-work-with-issues/about-issues) and/or [Projects](https://docs.github.com/en/issues/planning-and-tracking-with-projects/learning-about-projects/about-projects).

what should do we do restore the commits is there a way

Check the commit history Run:

git reflog

This wi…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@revamper11
Comment options

Answer selected by revamper11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Repositories The core of version-controlled code storage
2 participants