3 ms·
I posted this on another thread. If you only want the commits, something like this works, ssh user@git.example.com mkdir project-1.git cd project-1
by rovr138 6y ago
I posted this on another thread. If you only want the commits, something like this works,
ssh user@git.example.com
mkdir project-1.git
cd project-1.git
git init —-bare
exit
git remote add alternate user@git.example.com:project-1.git
All you need is SSH
- kenniskrag 6y agoI use it also that way. Gitlab does the same if you use ssh. They provide hooks on init so that gitlab knows if something happens.
- judge2020 6y agoAll you need to get all commits and all tags/branches: git clone --mirror https://github.com/you/repo Push those to another server: git remote add new https://gitlab.com/you/repo git push --mirror new