<?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/"
	>

<channel>
	<title>Sean&#039;s Blog &#187; Git</title>
	<atom:link href="http://seanbehan.com/category/git/feed/" rel="self" type="application/rss+xml" />
	<link>http://seanbehan.com</link>
	<description>Web Programming, Ruby on Rails, Wordpress, PHP from Burlington, Vermont</description>
	<lastBuildDate>Wed, 18 Jan 2012 21:44:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to Recover a Mistakenly Deleted Branch</title>
		<link>http://seanbehan.com/git/how-to-recover-a-mistakenly-deleted-branch/</link>
		<comments>http://seanbehan.com/git/how-to-recover-a-mistakenly-deleted-branch/#comments</comments>
		<pubDate>Tue, 21 Jun 2011 17:49:11 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[branching]]></category>
		<category><![CDATA[commit]]></category>
		<category><![CDATA[mistakes]]></category>
		<category><![CDATA[recovery]]></category>
		<category><![CDATA[reflog]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=1420</guid>
		<description><![CDATA[Workflow git checkout -b _new_branch_name # do some work and commit changed git checkout master git branch -d _new_branch_name # doh... i meant to merge first Fortunately, you can easily recover from this mistake. git reflog 395b1ea HEAD@{0}: checkout: moving from _master_cleanup_akismet to _master_cleanup bd7df04 HEAD@{1}: commit: spam handling using akismet for form submissions on [...]]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fseanbehan.com%2Fgit%2Fhow-to-recover-a-mistakenly-deleted-branch%2F&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_twitter" style="width:px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="How to Recover a Mistakenly Deleted Branch" data-url="http://seanbehan.com/git/how-to-recover-a-mistakenly-deleted-branch/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>Workflow<br />
<code><br />
git checkout -b _new_branch_name<br />
# do some work and commit changed<br />
git checkout master<br />
git branch -d _new_branch_name<br />
# doh... i meant to merge first<br />
</code></p>
<p>Fortunately, you can easily recover from this mistake.</p>
<pre class="wp-code-highlight prettyprint">
git reflog
395b1ea HEAD@{0}: checkout: moving from _master_cleanup_akismet to _master_cleanup
bd7df04 HEAD@{1}: commit: spam handling using akismet for form submissions on contact_submission and applicant models
395b1ea HEAD@{2}: checkout: moving from _master_cleanup to _master_cleanup_akismet
395b1ea HEAD@{3}: commit: cleaning up and adding some basic features
a828ef3 HEAD@{4}: checkout: moving from master to _master_cleanup
</pre>
<p>Should show you a list of commits across all branches in desc chronological order.</p>
<p>To merge the branch you just deleted you can give merge the sha.</p>
<pre class="wp-code-highlight prettyprint">
git merge bd7df04
</pre>
<p>Which would match the commit at  HEAD@{1}</p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/git/how-to-recover-a-mistakenly-deleted-branch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git Feature Branch Naming Strategy</title>
		<link>http://seanbehan.com/git/git-feature-branch-naming-strategy/</link>
		<comments>http://seanbehan.com/git/git-feature-branch-naming-strategy/#comments</comments>
		<pubDate>Mon, 20 Jun 2011 20:39:31 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[branching]]></category>
		<category><![CDATA[features]]></category>
		<category><![CDATA[naming things]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=1402</guid>
		<description><![CDATA[There are only two hard things in Computer Science: cache invalidation and naming things. &#8211; Phil Karlton Typically, we have three main branches at any given time in a project lifecycle. master, development and staging. Master is production ready code, development is actively being worked on and staging is pre-flight testing before deploying master. Features [...]]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fseanbehan.com%2Fgit%2Fgit-feature-branch-naming-strategy%2F&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_twitter" style="width:px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Git Feature Branch Naming Strategy" data-url="http://seanbehan.com/git/git-feature-branch-naming-strategy/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><blockquote><p>There are only two hard things in Computer Science: cache invalidation and naming things.<br />
&#8211; Phil Karlton</p></blockquote>
<p>Typically, we have three main branches at any given time in a project lifecycle.</p>
<pre class="wp-code-highlight prettyprint">master, development and staging.</pre>
<p>Master is production ready code, development is actively being worked on and staging is pre-flight testing before deploying master.</p>
<p>Features are branched off of development and use underscores to indicate distance from originating branch. For instance</p>
<pre class="wp-code-highlight prettyprint">
_development_users
__development_users_reset_password
</pre>
<p>indicates that __development_users_reset_password branched off of _development_users branch. </p>
<pre class="wp-code-highlight prettyprint">___development_users_reset_password_experiment</pre>
<p> (3 underscores away) would indicate that I was experimenting with a branch off of development users reset password branch. </p>
<p>This provides a nice visual hierarchy when running git branch from the command line. It&#8217;s also helpful when you have multiple features being worked on by several people and you want to know where these branches are in relation to each other without needing to ask anyone. Here is a more complex example that illustrates the usefulness in using underscores in naming feature branches</p>
<pre class="wp-code-highlight prettyprint">
  __development_people_importing_csv
* __development_people_importing_xml
  __development_users_password_reset
  _development_people_importing
  _development_users
  development
  master
  staging
</pre>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/git/git-feature-branch-naming-strategy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git Untrack Already Tracked Files</title>
		<link>http://seanbehan.com/git/git-untrack-already-tracked-files/</link>
		<comments>http://seanbehan.com/git/git-untrack-already-tracked-files/#comments</comments>
		<pubDate>Tue, 14 Jun 2011 13:27:44 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[gitignore]]></category>
		<category><![CDATA[productivity]]></category>
		<category><![CDATA[rm]]></category>
		<category><![CDATA[source control]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=1360</guid>
		<description><![CDATA[To remove files that are currently being tracked by git, you have to remove them from the &#8220;cache&#8221;. Note, doing this will NOT delete the file on your local machine. It will still be there but not be tracked. git rm -r --cached supersecretpasswords.txt You then need to add the file to the .gitignore file [...]]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fseanbehan.com%2Fgit%2Fgit-untrack-already-tracked-files%2F&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_twitter" style="width:px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Git Untrack Already Tracked Files" data-url="http://seanbehan.com/git/git-untrack-already-tracked-files/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>To remove files that are currently being tracked by git, you have to remove them from the &#8220;cache&#8221;. Note, doing this will NOT delete the file on your local machine. It will still be there but not be tracked.</p>
<pre class="wp-code-highlight prettyprint"> git rm -r --cached supersecretpasswords.txt </pre>
<p>You then need to add the file to the .gitignore file in the root of the project so that it isn&#8217;t tracked again on your next commit. </p>
<pre class="wp-code-highlight prettyprint">

vim .gitignore
supersecretpasswords.txt
</pre>
<p>.gitignore files are tracked so remember to check in these changes.</p>
<pre class="wp-code-highlight prettyprint">
git commit -am'my super secret passwords are safe!'
</pre>
<p>If you want to completely delete the file, on your local machine and from git</p>
<pre class="wp-code-highlight prettyprint">
git rm supersecretpasswords.txt
</pre>
<p>If you&#8217;re working with a directory remember to add the -r flag for recursive removal!</p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/git/git-untrack-already-tracked-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git: How to Delete a Branch with an Invalid Name</title>
		<link>http://seanbehan.com/git/git-how-to-delete-a-branch-with-an-invalid-name/</link>
		<comments>http://seanbehan.com/git/git-how-to-delete-a-branch-with-an-invalid-name/#comments</comments>
		<pubDate>Sun, 05 Jun 2011 12:39:50 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[branching]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[fixes]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[invalid]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=1349</guid>
		<description><![CDATA[If you&#8217;ve named a branch beginning with two dashes &#8220;&#8211;&#8221;, you&#8217;re sort of in trouble because git interprets your branch name as a switch/flag. You can skip switches all together by supplying two dashes before your branch name git branch -d -- --index_for_suppliers and your branch will be deleted!]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fseanbehan.com%2Fgit%2Fgit-how-to-delete-a-branch-with-an-invalid-name%2F&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_twitter" style="width:px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Git: How to Delete a Branch with an Invalid Name" data-url="http://seanbehan.com/git/git-how-to-delete-a-branch-with-an-invalid-name/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>If you&#8217;ve named a branch beginning with two dashes &#8220;&#8211;&#8221;, you&#8217;re sort of in trouble because git interprets your branch name as a switch/flag. You can skip switches all together<br />
by supplying two dashes before your branch name</p>
<pre class="wp-code-highlight prettyprint">git branch -d -- --index_for_suppliers</pre>
<p>and your branch will be deleted!</p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/git/git-how-to-delete-a-branch-with-an-invalid-name/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Remove Your Last Git Commit</title>
		<link>http://seanbehan.com/git/remove-your-last-git-commit/</link>
		<comments>http://seanbehan.com/git/remove-your-last-git-commit/#comments</comments>
		<pubDate>Sun, 05 Jun 2011 12:37:13 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[commit]]></category>
		<category><![CDATA[hard]]></category>
		<category><![CDATA[head]]></category>
		<category><![CDATA[reset]]></category>
		<category><![CDATA[source control]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=1240</guid>
		<description><![CDATA[Remove your last commit (if you haven&#8217;t pushed yet) git reset --hard HEAD~1 To see changes that have been committed and their position in HEAD git reflog And to undo your previous reset and advance the cursor to the reference immediately behind the current state git reset --hard HEAD@{1} If you have already pushed you [...]]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fseanbehan.com%2Fgit%2Fremove-your-last-git-commit%2F&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_twitter" style="width:px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="How to Remove Your Last Git Commit" data-url="http://seanbehan.com/git/remove-your-last-git-commit/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>Remove your last commit (if you haven&#8217;t pushed yet)</p>
<pre class="wp-code-highlight prettyprint">git reset --hard HEAD~1</pre>
<p>To see changes that have been committed and their position in HEAD</p>
<pre class="wp-code-highlight prettyprint">git reflog </pre>
<p>And to undo your previous reset and advance the cursor to the reference immediately behind the current state</p>
<pre class="wp-code-highlight prettyprint">git reset --hard HEAD@{1}</pre>
<p>If you have already pushed you can</p>
<pre class="wp-code-highlight prettyprint">git revert HEAD</pre>
<p>which will reverse your last commit by creating a new commit </p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/git/remove-your-last-git-commit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Have Git Email Committers After Pushes</title>
		<link>http://seanbehan.com/git/have-git-email-committers-after-pushes/</link>
		<comments>http://seanbehan.com/git/have-git-email-committers-after-pushes/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 22:50:05 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[email]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[/etc/hosts]]></category>
		<category><![CDATA[committer]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[mta]]></category>
		<category><![CDATA[push]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=1198</guid>
		<description><![CDATA[You need a Mail Transfer Agent MTA on the server. The easiest way is to install Sendmail, which Git uses by default. apt-get install sendmail Remember that /etc/hosts file needs the ip address to map to the domain name your sending mail from # vim /etc/hosts 127.0.0.1 localhost localhost.localdomain 207.136.202.87 wwwexample.com Sendmail has a tendency [...]]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fseanbehan.com%2Fgit%2Fhave-git-email-committers-after-pushes%2F&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_twitter" style="width:px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Have Git Email Committers After Pushes" data-url="http://seanbehan.com/git/have-git-email-committers-after-pushes/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>You need a Mail Transfer Agent MTA on the server. The easiest way is to install Sendmail, which Git uses by default. </p>
<pre class="wp-code-highlight prettyprint">
apt-get install sendmail
</pre>
<p>Remember that /etc/hosts file needs the ip address to map to the domain name your sending mail from</p>
<pre class="wp-code-highlight prettyprint">
# vim /etc/hosts
127.0.0.1     localhost localhost.localdomain
207.136.202.87    wwwexample.com
 </pre>
<p>Sendmail has a tendency to hang when sending mail otherwise. To test sendmail </p>
<pre class="wp-code-highlight prettyprint">
sendmail email@example.com
this is a test
how are you today world?
.
</pre>
<p>The period on a line by itself denotes end of message and will terminate the prompt and deliver the message. </p>
<p>Now you need to configure Git to send email after it receives a &#8220;push&#8221; from a committer. You can add email addresses, or you can set up a mailing list to email all members. Either way, you accomplish this with the following command, just remember to cd into the git repository.  </p>
<pre class="wp-code-highlight prettyprint">
git config --add hooks.mailinglist &quot;mailinglist@example.com&quot;
</pre>
<p>Next you need to activate the post-receive hook, located in the hooks directory of your repository. </p>
<pre class="wp-code-highlight prettyprint">
cp post-receive.sample post-receive
</pre>
<p>And uncomment the last line, which uses sendmail to deliver the commit message</p>
<pre class="wp-code-highlight prettyprint">
# uncomment the last line but keep the period &quot;.&quot;
. /usr/share/doc/git-core/contrib/hooks/post-receive-email
</pre>
<p>All done. Now just make some changes to your source code, add and commit them and you should receive an email with all the details!</p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/git/have-git-email-committers-after-pushes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Up Users, Permissions and Groups for SSH Access to a Shared Git Repository</title>
		<link>http://seanbehan.com/git/setting-up-permissions-and-groups-for-ssh-access-to-a-shared-git-repository/</link>
		<comments>http://seanbehan.com/git/setting-up-permissions-and-groups-for-ssh-access-to-a-shared-git-repository/#comments</comments>
		<pubDate>Mon, 13 Sep 2010 21:44:37 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[adduser]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[groupadd]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[repo]]></category>
		<category><![CDATA[shared]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=1189</guid>
		<description><![CDATA[If you are having permission problems using git, such as error: insufficient permission for adding an object to repository database ./objects There are a couple thing you can do to remedy the situation, before moving to a full on git server like gitosis. Create your users and add them to a group. Create (if you [...]]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fseanbehan.com%2Fgit%2Fsetting-up-permissions-and-groups-for-ssh-access-to-a-shared-git-repository%2F&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_twitter" style="width:px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Setting Up Users, Permissions and Groups for SSH Access to a Shared Git Repository" data-url="http://seanbehan.com/git/setting-up-permissions-and-groups-for-ssh-access-to-a-shared-git-repository/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>If you are having permission problems using git, such as </p>
<pre class="wp-code-highlight prettyprint">error: insufficient permission for adding an object to repository database ./objects</pre>
<p>There are a couple thing you can do to remedy the situation, before moving to a full on git server like gitosis. </p>
<p>Create your users and add them to a group. Create (if you haven&#8217;t already) your git repo on the server and change permission and ownship and set the git config sharedRepository to true.  </p>
<p>Here are all the commands, quick and dirty!</p>
<pre class="wp-code-highlight prettyprint">
adduser sean
adduser jackson
groupadd developers
adduser sean developers
adduser jackson developers

mkdir -p /git/dev/app.git
cd /git/dev/app.git
git --bare init
vim description  #edit this file (mac os x complains otherwise)
chmod -R g+ws *
chgrp -R developers *
git repo-config core.sharedRepository true
</pre>
<p>Found from: <a href="http://mapopa.blogspot.com/2009/10/git-insufficient-permission-for-adding.html">http://mapopa.blogspot.com/2009/10/git-insufficient-permission-for-adding.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/git/setting-up-permissions-and-groups-for-ssh-access-to-a-shared-git-repository/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Working with Branches in Git</title>
		<link>http://seanbehan.com/git/working-with-branches-in-git/</link>
		<comments>http://seanbehan.com/git/working-with-branches-in-git/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 21:43:14 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[branch]]></category>
		<category><![CDATA[source control]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=591</guid>
		<description><![CDATA[Show all the branches git branch Create a new branch git branch my_experimental_feature Use that branch git checkout my_experimental_feature Pushing the new branch to a remote server git push origin my_experimental_feature Pulling that branch down on another machine git pull origin my_experimental_feature Listing all branches on other machine git branch -a Updating other machine git [...]]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fseanbehan.com%2Fgit%2Fworking-with-branches-in-git%2F&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_twitter" style="width:px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Working with Branches in Git" data-url="http://seanbehan.com/git/working-with-branches-in-git/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>Show all the branches</p>
<pre class="wp-code-highlight prettyprint">
git branch
</pre>
<p>Create a new branch</p>
<pre class="wp-code-highlight prettyprint">
git branch my_experimental_feature
</pre>
<p>Use that branch</p>
<pre class="wp-code-highlight prettyprint">
git checkout my_experimental_feature
</pre>
<p>Pushing the new branch to a remote server</p>
<pre class="wp-code-highlight prettyprint">
git push origin my_experimental_feature
</pre>
<p>Pulling that branch down on another machine</p>
<pre class="wp-code-highlight prettyprint">
git pull origin my_experimental_feature
</pre>
<p>Listing all branches on other machine</p>
<pre class="wp-code-highlight prettyprint">
git branch -a
</pre>
<p>Updating other machine</p>
<pre class="wp-code-highlight prettyprint">
git pull origin my_experimental_feature
</pre>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/git/working-with-branches-in-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Non Standard Port Number with SSH and Git</title>
		<link>http://seanbehan.com/git/non-standard-port-number-with-ssh-and-git/</link>
		<comments>http://seanbehan.com/git/non-standard-port-number-with-ssh-and-git/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 19:25:27 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=529</guid>
		<description><![CDATA[Here is an example using the port 4567 to connect with over ssh and git ssh remote add origin ssh://sean@seanbehan.com:4567/path/to/git git push origin master]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fseanbehan.com%2Fgit%2Fnon-standard-port-number-with-ssh-and-git%2F&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_twitter" style="width:px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Non Standard Port Number with SSH and Git" data-url="http://seanbehan.com/git/non-standard-port-number-with-ssh-and-git/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>Here is an example using the port 4567 to connect with over ssh and git</p>
<pre class="wp-code-highlight prettyprint">
ssh remote add origin ssh://sean@seanbehan.com:4567/path/to/git
git push origin master
</pre>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/git/non-standard-port-number-with-ssh-and-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

