DEV Community

Cover image for Moving a git repository to a new host
Talles L
Talles L

Posted on

Moving a git repository to a new host

git clone --bare https://github.com/johnsmith/coolproject.git
cd coolproject.git
git push --mirror https://gitlab.com/johnsmith/coolproject.git
Enter fullscreen mode Exit fullscreen mode

Top comments (0)