Current location - Music Encyclopedia - Chinese History - Git reverts to a certain version and finds that all the recently submitted ones are gone (solution).
Git reverts to a certain version and finds that all the recently submitted ones are gone (solution).
1. version fallback

2. use git reflog to retrieve error reset? (The point is coming)

You can use this command if you find that everything you submitted before is gone. )

As can be seen from the above figure, we have made a wrong reset, and the following commands can be restored to the state before reset:

If you want to go back to that position, you can rewrite the log flag.

Error in git commit or rollback. Remember, don't panic, don't panic, don't panic, there is always a solution! ! !