I have a server that is hosting my 'bare' GIT repo for a few projects.
I want to know what it takes to move the GIT to another server?
In order to clone your repository to create a new bare repository, you run the clone command with the --bare option. By convention, bare repository directory names end with the suffix . git , like so: $ git clone --bare my_project my_project.
A bare Git repository is typically used as a Remote Repository that is sharing a repository among several different people. You don't do work right inside the remote repository so there's no Working Tree (the files in your project that you edit), just bare repository data. And that's it.
Just copy the parent directory to the new machine and have the checked out copies update their remote with git remote set-url <remotename> <url>
. Once you've verified that the users can push/pull properly with the new remote you can delete the copy from the old machine.
Doesn't this work?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With