Tag Archives: Git

Moving a git repository to new server

If you want to move your git repository from one server to another or say from github.com to gitlab.com or from your own server to another server, follow below steps to transfer your repo.

Step 1 – Create a bare clone  of your existing git repository

Step 2 – Now cd into the newly created directory ‘your-existing-git-repo-link.git‘  and fetch all branches

Step 3 – We have all the branches on our local machine, lets push it to new server

That’s it, you have shifted your git repo.

Useful git resources

List of useful git resources, that I have come across.

37 single’s


Git refcard on DZone

Git – the simple guide


Git reference


Getting started about version control


Git in 15 minutes


Add other useful resources known to you in the comment below 🙂