Skip to content

Instantly share code, notes, and snippets.

View Pandylandy's full-sized avatar
🦐
Focusing

Adelia Fatykhova Pandylandy

🦐
Focusing
  • Kazan (Volga region) Federal University
  • Kazan
  • 01:39 (UTC +03:00)
View GitHub Profile
@AgiosAndreas
AgiosAndreas / repo-full-copy.sh
Created January 10, 2014 14:57
Полный перенос git репозитория на другой сервер
# Клонируем исходный репозиторий без рабочего каталога (--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 ..
# Удаляем папку с репозиторием