[Git] Remplacer la branche origin.
1) Afficher l’actuel branche origin :
[~/ANDROID.rpg/classicrpg] ➔ git remote show origin
* distante origin
URL de rapatriement : https://github.com/pilotpol/classicrpg.git
URL push : https://github.com/pilotpol/classicrpg.git
Branche HEAD : master
Branche distante :
master suivi
Branche locale configurée pour 'git pull' :
master fusionne avec la distante master
Référence locale configurée pour 'git push' :
master pousse vers master (peut être mis à jour en avance rapide)
2) Remplacer la branche origin par la nouvelle :
[~/ANDROID.rpg/classicrpg] ➔ git remote set-url origin https://github.com/Nekrofage/androidrpg.git
3) Vérification :
[~/ANDROID.rpg/classicrpg] ➔ git remote show origin
* distante origin
URL de rapatriement : https://github.com/Nekrofage/androidrpg.git
URL push : https://github.com/Nekrofage/androidrpg.git
Branche HEAD : (unknown)
Branche distante :
refs/remotes/origin/master dépassé (utilisez 'git remote prune' pour supprimer)
Branche locale configurée pour 'git pull' :
master fusionne avec la distante master
4) Vérification :
[~/ANDROID.rpg/classicrpg] ➔ git remote -v origin https://github.com/Nekrofage/androidrpg.git (fetch) origin https://github.com/Nekrofage/androidrpg.git (push)
5) Pousser les modifications vers le dépôt git :
[~/ANDROID.rpg/classicrpg] ➔ git push -u origin master
6) Lien :
https://help.github.com/articles/changing-a-remote-s-url/
Comments are closed, but trackbacks and pingbacks are open.