Skip to main content

🗑 Git: Como eliminar un repositorio remoto

Con un solo comando!

Updated 1 min readMarkdown
Part of seriesGit: Aprende o aprende
🗑 Git: Como eliminar un repositorio remoto

Esto es útil cuando por ejemplo nos clonamos un repositorio y deseamos agregar nuestro repositorio como respositorio remoto y eliminar el otro.

Todo lo que tenemos que hacer es introducir el siguiente comando:

git remote -v

Eso nos listará nuestros repositorios remotos, algo así como:


origin  https://gitlab.com/nkrowicki/mi-repositorio (fetch)

origin  https://gitlab.com/nkrowicki/mi-repositorio (push)

Luego, corremos:

git remote rm origin

Esto eliminará el repositorio origin por lo que si introducimos nuevamente git remote -v veremos que ya no nos devolverá nada.

Fácil no?

About the author

  • 🤓 Passionate about technology and problem-solving, with experience in developing scalable solutions.

    💪🏻 I love working in collaborative teams, contributing ideas, learning new things and contribute to projects that make a real difference!

    🚀 I'm driven by innovation and continuously seek out new challenges that allow me to create impactful solutions

No comments yet. Be the first to comment.

Git: Aprende o aprende

Part 3 of 4

Aprende e incorpora conceptos de Git de una manera sencilla, sin complicaciones y con ejemplos de la vida real.

Up nextGIT: 3 comandos útiles que no conocías!--amend, --patch, y reflog. Conocías?