925 B
925 B
title | localeTitle |
---|---|
Change the Url of a Remote Repository | Cambiar la URL de un repositorio remoto |
El comando git remote set-url
cambia la git remote set-url
un repositorio remoto existente.
Este comando toma dos argumentos:
-
Un nombre remoto existente. Por ejemplo, origen o upstream son dos opciones comunes.
-
Una nueva URL para el control remoto. Por ejemplo,
https://github.com/USERNAME/OTHERREPOSITORY.git
Entonces, para cambiar la URL de un repositorio remoto, harías algo como esto:
- Ver el repositorio remoto existente:
git remote -v
- Cambia la URL del repositorio remoto:
git remote set-url origin https://github.com/USERNAME/OTHERREPOSITORY.git
- Y puedes verificar el nuevo repositorio remoto haciendo:
git remote -v
Para obtener más información, echa un vistazo a este artículo github.