<?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>Code &#38; Config - sharing the smart bits &#187; GIT</title>
	<atom:link href="http://code.lewro.com/category/git/feed/" rel="self" type="application/rss+xml" />
	<link>http://code.lewro.com</link>
	<description>Code &#38; Config - sharing the smart bits</description>
	<lastBuildDate>Sun, 22 Jan 2012 13:30:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Basic GIT Commands</title>
		<link>http://code.lewro.com/git/basic-git-commands/</link>
		<comments>http://code.lewro.com/git/basic-git-commands/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 14:00:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[GIT]]></category>

		<guid isPermaLink="false">http://code.lewro.com/?p=137</guid>
		<description><![CDATA[Couple of handy Git command which are used quite often in daily work. There is lot more git commands you might want to use but from my experience this is all you need to know for 99 percent of the time. There are some tools which make life even easier for you. These tools has [...]]]></description>
			<content:encoded><![CDATA[<p>Couple of handy Git command which are used quite often in daily work. There is lot more git commands you might want to use but from my experience this is all you need to know for 99 percent of the time. There are some tools which make life even easier for you. These tools has user interfaces where you do not need to execute your commands in the command line but I think it helps a lot if you know your way around terminal, specially if you are considering languages such as ruby on rails where work with commands is necessary.  </p>
<pre class="brush: bash;">

// Create new branch
git checkout -b “branchname”

// Switch branches
git checkout branchname

// Push branch to github for first time
git push github branchname

// Change the branche
git checkout -b branchname

// Pull from the branch
git pull origin branchname

// Merging branches
$git merge master
</pre>
]]></content:encoded>
			<wfw:commentRss>http://code.lewro.com/git/basic-git-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create SSH key &#8211; for GIT or any other purposes</title>
		<link>http://code.lewro.com/git/create-ssh-key-for-git-or-any-other-purposes/</link>
		<comments>http://code.lewro.com/git/create-ssh-key-for-git-or-any-other-purposes/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 17:41:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[GIT]]></category>

		<guid isPermaLink="false">http://code.lewro.com/?p=105</guid>
		<description><![CDATA[SSH keys are usually stored in hidden ssh directory on MAC. (If you know where the keys are stored on Windows please add it to the comment. Cheers). It might sound complicated but it is actually very simple. You only need to generate the key using phrase to encode the content, give it a name [...]]]></description>
			<content:encoded><![CDATA[<p>SSH keys are usually stored in hidden ssh directory on MAC. (If you know where the keys are stored on Windows please add it to the comment. Cheers).<br />
It might sound complicated but it is actually very simple. You only need to generate the key using phrase to encode the content, give it a name and add the key, which means letting ssh that the key exist. If you have generated the key for git you will need to open the public version of the key and copy the content and paste it into the git. That way git can authorize all your actions without asking your for password. After you do all this, you should be able to pull and push code from  and into the git repository. </p>
<pre class="brush: bash;">
  cd ~/.ssh
  ssh-keygen -t rsa

  // enter the key name then enter the phrase which is used to code the key
  // once the code is generated add it 

  ssh-add mysshkey

  // if you are generating ssh key for GIT you need to now copy the content of the your public ssh key
  // lets say you called your key git, open the git.pub file and copy the content

  vi git.pub

  // now you will need to paste the code into your GIT settings in your profile
  // you can now check if everything is ok, you should get welcome message from GIT server

  ssh git@github.com
</pre>
]]></content:encoded>
			<wfw:commentRss>http://code.lewro.com/git/create-ssh-key-for-git-or-any-other-purposes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

