Zach
Zach

Reputation: 23

Git remote disappearance and inconsistency

How to recover the state of the repo?

Upvotes: 1

Views: 62

Answers (1)

VonC
VonC

Reputation: 1323203

The .git/config file is local only, not tracked by Git.

If you remember the URL for those remotes, you would need to add them back manually:

git remote add origin /url/remote/repo
git remote add upstream(or any other remote name) /url/upstream/repo
...

Upvotes: 1

Related Questions