<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>http://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Trucos_de_Git</id>
	<title>Trucos de Git - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Trucos_de_Git"/>
	<link rel="alternate" type="text/html" href="http://wiki.cabal.mx/index.php?title=Trucos_de_Git&amp;action=history"/>
	<updated>2026-05-30T16:26:53Z</updated>
	<subtitle>Historial de revisiones para esta página en el wiki</subtitle>
	<generator>MediaWiki 1.32.1</generator>
	<entry>
		<id>http://wiki.cabal.mx/index.php?title=Trucos_de_Git&amp;diff=1687&amp;oldid=prev</id>
		<title>Renich: como borrar una branch remota</title>
		<link rel="alternate" type="text/html" href="http://wiki.cabal.mx/index.php?title=Trucos_de_Git&amp;diff=1687&amp;oldid=prev"/>
		<updated>2011-08-10T06:26:26Z</updated>

		<summary type="html">&lt;p&gt;como borrar una branch remota&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Compartir tu repositorio en la red local ==&lt;br /&gt;
&lt;br /&gt;
Si tus repositorios Git están en /home/usuario/proyectos, por ejemplo /home/usuario/proyectos/Biblio-Cabal y &lt;br /&gt;
/home/usuario/proyectos/tutoriales, ejecuta este comando:&lt;br /&gt;
&lt;br /&gt;
  git daemon --base-path=/home/usuario/proyectos/ --export-all&lt;br /&gt;
&lt;br /&gt;
Los demás podrán copiar tus repositorios así, suponiendo que la dirección de tu PC es 192.168.1.105:&lt;br /&gt;
&lt;br /&gt;
  git clone git://192.168.1.105/Biblio-Cabal&lt;br /&gt;
  git clone git://192.168.1.105/tutoriales&lt;br /&gt;
&lt;br /&gt;
Nota: si usas un cortafuegos, asegúrate de que permita usar el puerto predeterminado 9418.&lt;br /&gt;
&lt;br /&gt;
Referencia: http://ozmm.org/posts/when_github_goes_down.html&lt;br /&gt;
&lt;br /&gt;
== Descarga un repositorio remoto a un repositorio local ==&lt;br /&gt;
&lt;br /&gt;
1. Crea un repositorio local vacío:&lt;br /&gt;
&lt;br /&gt;
      cd Biblio-Cabal&lt;br /&gt;
      git init&lt;br /&gt;
&lt;br /&gt;
2. Agrega el repositorio público como una rama remota:&lt;br /&gt;
&lt;br /&gt;
      git remote add bibliocabal http://pydev.linuxcabal.org/git/Biblio-Cabal.git&lt;br /&gt;
&lt;br /&gt;
3. Aplica los cambios a tu repositorio local:&lt;br /&gt;
&lt;br /&gt;
      git pull bibliocabal&lt;br /&gt;
&lt;br /&gt;
== Como borrar branches remotas ==&lt;br /&gt;
&lt;br /&gt;
Para borrar una branch remota, es necesario hacer un push vacío:&lt;br /&gt;
&lt;br /&gt;
  git push origin :branch_a_borrar&lt;br /&gt;
&lt;br /&gt;
Si la branch no quiere ser borrada, intenta:&lt;br /&gt;
&lt;br /&gt;
  git push origin HEAD:branch_a_borrar&lt;br /&gt;
  git push origin :branch_a_borrar&lt;br /&gt;
&lt;br /&gt;
== Otras recetas ==&lt;br /&gt;
En la categoría [https://git.wiki.kernel.org/index.php/Category:GitDocumentation GitDocumentation] del wiki en kernel.org, en especial los artículos [https://git.wiki.kernel.org/index.php/QuickStart QuickStart] y [https://git.wiki.kernel.org/index.php/GitTips GitTips].&lt;br /&gt;
&lt;br /&gt;
== Ver también ==&lt;br /&gt;
*[[Instalación de Git]]&lt;br /&gt;
*[[Introducción a Git]]&lt;br /&gt;
&lt;br /&gt;
[[Categoría:HowTos]]&lt;br /&gt;
[[Category:Git]]&lt;/div&gt;</summary>
		<author><name>Renich</name></author>
		
	</entry>
</feed>