Can I recover a GIT tag from a selection

I have a git repo and my colleague had a clone of this on his pc. For some reason, we lost our repository due to technical problems.

In the short time before we lost his repo, he hid some work and I did git fetch and then git merge master .

Can I get the contents of the wallet? Can the git fetch command pull the power?

I can view all remote branches with git branch -a , but I need data with persistence.

We run git version 1.6.3.3 on Ubuntu 9.10 Karmic

+4
source share
1 answer

Sorry, I do not believe that you can recover from this. (perhaps if you could, it would be a security risk, someone might hide a password in a configuration file or something like that.)

From the documentation ( git fetch --help ): Fetches named heads or tags from one or more other repositories, along with the objects necessary to complete them.

Keyword: named chapters . Unfortunately, the wallet is not a named head (or tag).

+6
source

Source: https://habr.com/ru/post/1411813/


All Articles