F
F
FeL1ksS2017-05-11 19:42:39
git
FeL1ksS, 2017-05-11 19:42:39

How to restore .git folder?

There was a .git folder in the local directory with the project, and it so happened that it was gone. If you do git initit again, no branches will be visible, only master. Tried to do it , same effect. How to restore .git folder? git clone

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Zaitsev, 2017-05-11
@FeL1ksS

git init
git remote add origin <url вашего репозитория>
git fetch

There may or may not be local branches, but origin/* branches will be in place, git checkout <branch name>

D
D3lphi, 2017-05-11
@D3lphi


Tried to do git clone, same effect.
Apparently they tried it wrong. Git clone is exactly what it is designed for. Try again.

F
ferasinka, 2017-05-11
@ferasinka

Download the archive of the repository and copy the folder directly on the file system

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question