HOW TO - Move git to another computer

Viewed 581

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 ?

1 Answers

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 -- .
Related