<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>Leandro Nunes dos Santos &#187; git</title>
	<atom:link href="http://www.leandronunes.net/category/git/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.leandronunes.net</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 11 Feb 2011 11:29:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<!-- podcast_generator="podPress/8.8" - maintenance_release="8.8.4" -->
		<copyright>Copyright &#xA9; 2012 Leandro Nunes dos Santos </copyright>
		<managingEditor>leandronunes@gmail.com ()</managingEditor>
		<webMaster>leandronunes@gmail.com ()</webMaster>
		<category>posts</category>
		<itunes:keywords></itunes:keywords>
		<itunes:subtitle></itunes:subtitle>
		<itunes:summary>Just another WordPress weblog</itunes:summary>
		<itunes:author></itunes:author>
		<itunes:category text="Society &amp; Culture"/>
		<itunes:owner>
			<itunes:name></itunes:name>
			<itunes:email>leandronunes@gmail.com</itunes:email>
		</itunes:owner>
		<itunes:block>No</itunes:block>
		<itunes:explicit>no</itunes:explicit>
		<itunes:image href="http://www.leandronunes.net/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<image>
			<url>http://www.leandronunes.net/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
			<title>Leandro Nunes dos Santos</title>
			<link>http://www.leandronunes.net</link>
			<width>144</width>
			<height>144</height>
		</image>
		<item>
		<title>Atualizando o git e tendo problemas com o push.default</title>
		<link>http://www.leandronunes.net/2010/04/atualizando-o-git-e-tendo-problemas-com-o-push-default/</link>
		<comments>http://www.leandronunes.net/2010/04/atualizando-o-git-e-tendo-problemas-com-o-push-default/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 01:16:30 +0000</pubDate>
		<dc:creator>Leandro Nunes</dc:creator>
				<category><![CDATA[git]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.leandronunes.net/?p=114</guid>
		<description><![CDATA[Se você atualizou a sua versão do git para a 1.6.3.3 como eu vai ficar assustado depois de dar um git push.
Você vai se deparar com isso:

warning: You did not specify any refspecs to push, and the current remote
warning: has not configured any push refspecs. The default action in this
warning: case is to push all [...]]]></description>
			<content:encoded><![CDATA[<p>Se você atualizou a sua versão do git para a 1.6.3.3 como eu vai ficar assustado depois de dar um git push.</p>
<p>Você vai se deparar com isso:</p>
<pre>
warning: You did not specify any refspecs to push, and the current remote
warning: has not configured any push refspecs. The default action in this
warning: case is to push all matching refspecs, that is, all branches
warning: that exist both locally and remotely will be updated.  This may
warning: not necessarily be what you want to happen.
warning:
warning: You can specify what action you want to take in this case, and
warning: avoid seeing this message again, by configuring 'push.default' to:
warning:   'nothing'  : Do not push anything
warning:   'matching' : Push all matching branches (default)
warning:   'tracking' : Push the current branch to whatever it is tracking
warning:   'current'  : Push the current branch
</pre>
<p>Pode ficar tranquilo que não foi uma falha de segmentação no seu SO, mas sim uma mensagem de Warning que o novo git trás para te avisar que você precisa configurar a variável:</p>
<pre>push.default</pre>
<p>É claro que o seu comando vai continuar funcionando perfeitamente como sempre funcionou se você não configurar essa variável, mas você vai ficar agoniado com essa mensagem imensa de warning aparecendo toda hora na sua tela.</p>
<p>Acredite em mim <img src='http://www.leandronunes.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Então para ajeitar isso basta configurar variável com o comando:</p>
<pre>git config push.default matching</pre>
<p>Se você deseja que esta seja uma configuração padrão para todos os seus repositórios digite o comando:</p>
<pre>git config --global push.default matching</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.leandronunes.net/2010/04/atualizando-o-git-e-tendo-problemas-com-o-push-default/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Configurando o git depois do import</title>
		<link>http://www.leandronunes.net/2009/05/configurando-o-git-depois-do-import/</link>
		<comments>http://www.leandronunes.net/2009/05/configurando-o-git-depois-do-import/#comments</comments>
		<pubDate>Thu, 28 May 2009 13:51:19 +0000</pubDate>
		<dc:creator>Leandro Nunes</dc:creator>
				<category><![CDATA[git]]></category>
		<category><![CDATA[config]]></category>

		<guid isPermaLink="false">http://www.leandronunes.net/?p=62</guid>
		<description><![CDATA[Eu utilizo o gitosis para gerenciar os meus repositórios git e dei os meus primeiros passos para configurá-lo da forma correta seguido o tutorial hosting-git-repositories-the-easy-and-secure-way.
Antigamente ao adicionar um repositório novo eu tinha um problema.
Eu seguia todos os passos descritos no tutorial para adicionar  um novo repositório, e ao dar um pull  eu recebia [...]]]></description>
			<content:encoded><![CDATA[<p>Eu utilizo o gitosis para gerenciar os meus repositórios git e dei os meus primeiros passos para configurá-lo da forma correta seguido o tutorial <a href="http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way">hosting-git-repositories-the-easy-and-secure-way</a>.</p>
<p>Antigamente ao adicionar um repositório novo eu tinha um problema.</p>
<p>Eu seguia todos os passos descritos no tutorial para adicionar  um novo repositório, e ao dar um <em>pull</em>  eu recebia a seguinte mensagem de erro:</p>
<p><code><br />
smurf@smurf:~/safernet/projetos/snscripts$ git pull<br />
You asked me to pull without telling me which branch you<br />
want to merge with, and 'branch.master.merge' in<br />
your configuration file does not tell me either.  Please<br />
name which branch you want to merge on the command line and<br />
try again (e.g. 'git pull <repository> <refspec>').<br />
See git-pull(1) for details on the refspec.</p>
<p>If you often merge with the same branch, you may want to<br />
configure the following variables in your configuration<br />
file:</p>
<p>    branch.master.remote = <nickname><br />
    branch.master.merge = <remote -ref><br />
    remote.<nickname>.url = <url><br />
    remote.<nickname>.fetch = <refspec><br />
</refspec></nickname></url></nickname></remote></nickname></refspec></repository></code></p>
<p>Abrindo o arquivo de configuração do git (.git/config) eu notei que não existiam as informações do <em>branch master</em> que eu estava trabalhando no momento.<br />
<code><br />
[core]<br />
	repositoryformatversion = 0<br />
	filemode = true<br />
	bare = false<br />
	logallrefupdates = true<br />
[remote "origin"]<br />
	url = git@host.com.br:project_name.git<br />
	fetch = +refs/heads/*:refs/remotes/origin/*<br />
</code></p>
<p>Então eu editei o arquivo .git/config adicionando as informações do branch master:</p>
<p><code><br />
[core]<br />
	repositoryformatversion = 0<br />
	filemode = true<br />
	bare = false<br />
	logallrefupdates = true<br />
[remote "origin"]<br />
	url = git@host.com.br:project_name.git<br />
	fetch = +refs/heads/*:refs/remotes/origin/*<br />
[branch "master"]<br />
   remote = origin<br />
   merge = refs/heads/master<br />
</code></p>
<p>Pronto.</p>
<p>Agora será possível dar um <em>pull</em> normalmente.</p>
<p><code><br />
smurf@smurf:~/safernet/projetos/snscripts$ git pull<br />
Already up-to-date.<br />
</code></p>
<p>Não sei se esta é a melhor forma de resolver o problema, mas é a que eu utilizo. </p>
<p>Espero que seja útil para alguém <img src='http://www.leandronunes.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.leandronunes.net/2009/05/configurando-o-git-depois-do-import/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

