2

I have a little issue with git. I have on my main computer the original repo, where I started the development of the git repo

I have a new computer and now I want to move the "original repo" (local one) to the new one, and continue working on it and push new modifications to git.

For now, I copy/paste the entire folder (with .git folder) but I can't do nothing. What are the steps to do ?

Nathan Cheval
  • 773
  • 2
  • 7
  • 32

1 Answers1

4

I copy/paste the entire folder (with .git folder) but I can't do nothing.

That should be enough (assuming indeed that Git is installed): if you have copied said .git/ in /path/to/repo, you should be able to restore everything with the new git restore commad (2.23+)

git restore -s@ -W -- .
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250