Nobbo AI

Change git Remote Repository

1. Renommer le dépôt GitHub

Sur GitHub :

GitHub redirigera automatiquement l’ancienne URL vers la nouvelle.

Par exemple :

1https://github.com/moncompte/ancien-projet

devient :

1https://github.com/moncompte/nouveau-projet

2. Mettre à jour le remote Git local

Dans ton projet local, vérifie l’URL actuelle :

1git remote -v

Puis remplace-la :

1git remote set-url origin https://github.com/moncompte/nouveau-projet.git

Vérifie :

1git remote -v

3. Renommer le dossier local (facultatif)

Depuis le dossier parent :

mv ancien-projet nouveau-projet

Puis :

1cd nouveau-projet

<< Previous Post

|

Next Post >>

#Git