git
-
git repository mirror creationComputer/linux 2020. 5. 2. 15:53
git clone --bare SOURCE_URL/SOURCE.git cd SOURCE.git git fetch git remote add new-origin MIRROR_URL/MIRROR.git git remote set-url new-origin git@github.com:USERNAME/MIRROR.git (only for 2FA of github) git push new-origin --mirror cd .. rm -rf SOURCE.git
-
Move A git Repository to another placeComputer/linux 2016. 7. 3. 04:09
The original repository : https://github.com/EuropeanSpallationSource/snmp-nsclThe new repository : https://github.com/ESSICS/snmp-nscl The original repository should have only one master, the new repository should be created via "github". $git clone https://github.com/EuropeanSpallationSource/snmp-nscl $cd snmp-nscl/ $git fetch origin $ git remote add new-origin https://github.com/ESSICS/snmp-n..