[SOLUCIONADO] Cambiar de repositorio

Iniciado por Inna B, Junio 02, 2021, 09:21:19 AM

Tema anterior - Siguiente tema

0 Miembros y 1 Visitante están viendo este tema.

Junio 02, 2021, 09:21:19 AM Ultima modificación: Junio 02, 2021, 04:55:36 PM por AXCESS
Hola! Necesito cambiar un proyecto que ya tengo inicializado en un repositorio que no uso, a un repositorio que si estoy utilizando. Cuando pongo el comando "git remote -v" me sale la dirección del repositorio que no utilizo y no puedo cambiarlo.  Alguien sabe como puedo hacer eso? No soy muy buena en git  ;D
Inna \m/

Buenas!

para agregar un nuevo origen deberías utilizar:

git remote add "nombre que le quieras dar" "url del nuevo repo"

ejemplo "git remote add origin You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login"

si el remoto anterior ya no lo vas a usar podrías hacer los siguientes pasos:
----------------------------------------------------------------
# Eliminar viejo origen
~ git remote rm origin

# Agregar nuevo origen
~ git remote add origin You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

# Configurarlo como master
~ git config master.remote origin

------------------------------------------------------------

luego para ver todos los remotos podes usar:
git remote get-url origin --all