-
-
Save OrlandoST/94af4e45ae2e7096c6dd to your computer and use it in GitHub Desktop.
Полный перенос git репозитория на другой сервер
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Клонируем исходный репозиторий без рабочего каталога (--bare) | |
git clone --bare https://github.com/exampleuser/old-repository.git | |
cd old-repository.git | |
# Делаем mirror-push(будут скопированы все ветки и тэги) в новый репозиторий | |
git push --mirror https://github.com/exampleuser/new-repository.git | |
cd .. | |
# Удаляем папку с репозиторием | |
rm -rf old-repository.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment