<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: My initial git settings for any repository</title>
	<atom:link href="http://www.dont-panic.cc/capi/2008/12/28/my-initial-git-settings-for-any-repository/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dont-panic.cc/capi/2008/12/28/my-initial-git-settings-for-any-repository/</link>
	<description>Development, Network, Security, Ideas &#038; Opinions</description>
	<lastBuildDate>Thu, 15 Dec 2011 23:52:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: git installation {CRLF and LF} &#171; Randomos Technos</title>
		<link>http://www.dont-panic.cc/capi/2008/12/28/my-initial-git-settings-for-any-repository/comment-page-1/#comment-16787</link>
		<dc:creator>git installation {CRLF and LF} &#171; Randomos Technos</dc:creator>
		<pubDate>Wed, 30 Sep 2009 04:35:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.dont-panic.cc/capi/?p=177#comment-16787</guid>
		<description>[...] links: information, windows_setup_example, vista_issues, here, here   Posted in Uncategorized. Tags: git. Leave a Comment [...]</description>
		<content:encoded><![CDATA[<p>[...] links: information, windows_setup_example, vista_issues, here, here   Posted in Uncategorized. Tags: git. Leave a Comment [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markus Prinz</title>
		<link>http://www.dont-panic.cc/capi/2008/12/28/my-initial-git-settings-for-any-repository/comment-page-1/#comment-7162</link>
		<dc:creator>Markus Prinz</dc:creator>
		<pubDate>Sun, 04 Jan 2009 13:54:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.dont-panic.cc/capi/?p=177#comment-7162</guid>
		<description>Stuff from my config:

to get some nice colorized output:
  git config --global color.status auto
  git config --global color.diff auto
  git config --global color.branch auto

Add all changed, but not already staged files, to and remove all deleted files from the index:
  git config --global alias.addrm &#039;!addremove() { git add -u . ; git add . ; }; addremove&#039;

Some aliases I use all the time:
  git config --global alias.pa &#039;add --patch&#039;
  git config --global alias.ia &#039;add --interactive&#039;
  git config --global alias.staged &#039;diff --cached&#039; (Shows all staged changes)

Other useful aliases:

Undo the last commit:
  git config --global alias.undo &#039;reset --hard HEAD@{1}&#039;

Retrack a branch to a different remote branch, see http://gist.github.com/29095:
  git config --global alias.retrack &#039;!retrack() { git config &quot;branch.$1.remote&quot; $(dirname &quot;$2&quot;); git config &quot;branch.$1.merge&quot; &quot;refs/heads/$(basename &quot;$2&quot;)&quot;; }; retrack&#039;

Useful command you may not already know:
  git whatchanged: Shows a log + differences that each commit introduce
  git stash (&#124;list&#124;apply&#124;clear&#124;pop): Allows you to stash away changes in your current working directory for later. See manpage for more info.</description>
		<content:encoded><![CDATA[<p>Stuff from my config:</p>
<p>to get some nice colorized output:<br />
  git config &#8211;global color.status auto<br />
  git config &#8211;global color.diff auto<br />
  git config &#8211;global color.branch auto</p>
<p>Add all changed, but not already staged files, to and remove all deleted files from the index:<br />
  git config &#8211;global alias.addrm &#8216;!addremove() { git add -u . ; git add . ; }; addremove&#8217;</p>
<p>Some aliases I use all the time:<br />
  git config &#8211;global alias.pa &#8216;add &#8211;patch&#8217;<br />
  git config &#8211;global alias.ia &#8216;add &#8211;interactive&#8217;<br />
  git config &#8211;global alias.staged &#8216;diff &#8211;cached&#8217; (Shows all staged changes)</p>
<p>Other useful aliases:</p>
<p>Undo the last commit:<br />
  git config &#8211;global alias.undo &#8216;reset &#8211;hard HEAD@{1}&#8217;</p>
<p>Retrack a branch to a different remote branch, see <a href="http://gist.github.com/29095" rel="nofollow">http://gist.github.com/29095</a>:<br />
  git config &#8211;global alias.retrack &#8216;!retrack() { git config &#8220;branch.$1.remote&#8221; $(dirname &#8220;$2&#8243;); git config &#8220;branch.$1.merge&#8221; &#8220;refs/heads/$(basename &#8220;$2&#8243;)&#8221;; }; retrack&#8217;</p>
<p>Useful command you may not already know:<br />
  git whatchanged: Shows a log + differences that each commit introduce<br />
  git stash (|list|apply|clear|pop): Allows you to stash away changes in your current working directory for later. See manpage for more info.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin Carpella</title>
		<link>http://www.dont-panic.cc/capi/2008/12/28/my-initial-git-settings-for-any-repository/comment-page-1/#comment-7152</link>
		<dc:creator>Martin Carpella</dc:creator>
		<pubDate>Sat, 03 Jan 2009 00:26:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.dont-panic.cc/capi/?p=177#comment-7152</guid>
		<description>Hi,

I do it on a per-repository basis because I have some projects where I cannot set core.safecrlf, for example projects where I use auto-generated ressource files in Visual Studio (they are generated with LF only).

My default .gitignore for Visual C# projects is:
bin
obj
*.user
*.suo
*.ncb
Thumbs.db

(Where *.ncb is for projects including C++ projects). Sorry, I primarily develop C# at the moment, therefore I have no set for real C++ projects and solutions at the moment.

Hope this helps!

Best regards,
Martin</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I do it on a per-repository basis because I have some projects where I cannot set core.safecrlf, for example projects where I use auto-generated ressource files in Visual Studio (they are generated with LF only).</p>
<p>My default .gitignore for Visual C# projects is:<br />
bin<br />
obj<br />
*.user<br />
*.suo<br />
*.ncb<br />
Thumbs.db</p>
<p>(Where *.ncb is for projects including C++ projects). Sorry, I primarily develop C# at the moment, therefore I have no set for real C++ projects and solutions at the moment.</p>
<p>Hope this helps!</p>
<p>Best regards,<br />
Martin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fritz</title>
		<link>http://www.dont-panic.cc/capi/2008/12/28/my-initial-git-settings-for-any-repository/comment-page-1/#comment-7151</link>
		<dc:creator>Fritz</dc:creator>
		<pubDate>Fri, 02 Jan 2009 23:11:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.dont-panic.cc/capi/?p=177#comment-7151</guid>
		<description>Another question: for Visual studio projects, what do you use as your ignore options?  What files can you safely not include in the repository if you just want to generate them later by building with visual studio?  I&#039;m mostly using VC++ as a language, if that makes any difference.</description>
		<content:encoded><![CDATA[<p>Another question: for Visual studio projects, what do you use as your ignore options?  What files can you safely not include in the repository if you just want to generate them later by building with visual studio?  I&#8217;m mostly using VC++ as a language, if that makes any difference.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fritz</title>
		<link>http://www.dont-panic.cc/capi/2008/12/28/my-initial-git-settings-for-any-repository/comment-page-1/#comment-7150</link>
		<dc:creator>Fritz</dc:creator>
		<pubDate>Fri, 02 Jan 2009 23:08:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.dont-panic.cc/capi/?p=177#comment-7150</guid>
		<description>Thanks, I&#039;m just getting started with git and am planning to use it for some pre-existing projects, this helps.  One question: why set the crlf stuff on a repository-only basis?  In other words, when would you NOT want to use it?  cheers &amp; happy new year!!</description>
		<content:encoded><![CDATA[<p>Thanks, I&#8217;m just getting started with git and am planning to use it for some pre-existing projects, this helps.  One question: why set the crlf stuff on a repository-only basis?  In other words, when would you NOT want to use it?  cheers &amp; happy new year!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

