-
Move A git Repository to another placeComputer/linux 2016. 7. 3. 04:09
The original repository : https://github.com/EuropeanSpallationSource/snmp-nscl
The 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-nscl
$ git push --all new-origin
$ git push --tags new-origin
$ git remote rm origin
$ git remote rename new-origin origin
$ git push --set-upstream origin masterThe original repository could be deleted later.
If an original repository has branches, it would be better to check the following original reference.
https://www.smashingmagazine.com/2014/05/moving-git-repository-new-server/
'Computer > linux' 카테고리의 다른 글
command line to set the default pdf application (0) 2016.08.16 Disable touchpad while typing - SynapticsTouchpad (0) 2016.06.27 Public Key of Google Chrome in Debain (0) 2016.05.04