Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

migrating a git repository via rsync

Tags:

git

A while ago we setup a git repository for internal use on a local server. The server is not on a business line and thus has a non-static ip.

We want to move the git origin from the local server to a new remote server (this is our private dedicated server, not github or similar).

Can we just rsync the entire git directory over to the new server?


1 Answers

Though the simplest way would surely be to do a git clone, yes, you can use rsync.

like image 198
gturri Avatar answered Oct 31 '25 17:10

gturri



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!