I have an old laptop IBM Z61t
as my git server. I want to upgrade my laptop server to a desktop server(the laptop server will not use anymore).
how could I setup and migrate the git repositories to my desktop server without losing histories. It's quiet different from setting up a git server.
Thanks in advance.
If you don't want to setup a git server, simply do a
bundle
of your repo on your old laptop.That will generate one file
job.bundle
, that you can copy (through any mean you want: USB key, ...) onto your other server.Once copied, you can clone from that bundle (which acts as a git repo):
You can simply copy the directory with the normal filesystem tools, or run a
git clone
on the new machine to copy, since you seem to already have the exiting machine set up as a server.[for my own reference, just push to origin:
git push origin master
囧 ]first: initialize new repository at desktop server
second: clone the repository
third: config and push to new repository
change the url from laptopserver.com to desktopserver.com