<?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>black-sonCategory:  &#187; Git - black-son</title>
	<atom:link href="http://black-son.com/category/tool/git/feed" rel="self" type="application/rss+xml" />
	<link>http://black-son.com</link>
	<description>プログラム開発のメモ帳とか</description>
	<lastBuildDate>Thu, 03 Jul 2014 08:58:42 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.6</generator>
		<item>
		<title>Gitコマンド早見表一覧</title>
		<link>http://black-son.com/tool/git/456</link>
		<comments>http://black-son.com/tool/git/456#comments</comments>
		<pubDate>Tue, 26 Nov 2013 09:46:27 +0000</pubDate>
		<dc:creator>sakamon</dc:creator>
				<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://black-son.com/?p=456</guid>
		<description><![CDATA[Gitコマンド一覧 ■ディレクトリ作成 ■移動 ■Git環境初期化 ■ファイル追加 ■コミット ■ブランチを作 [&#8230;]]]></description>
				<content:encoded><![CDATA[<h3><span style="color: #00ff00;">Gitコマンド一覧</span></h3>
<p>■ディレクトリ作成</p>
<pre class="brush: cpp; title: sample code; notranslate">
$ mkdir sample
</pre>
<p>■移動</p>
<pre class="brush: cpp; title: sample code; notranslate">
$ cd sample/
</pre>
<p>■Git環境初期化</p>
<pre class="brush: cpp; title: sample code; notranslate">
$ git init
</pre>
<p>■ファイル追加</p>
<pre class="brush: cpp; title: sample code; notranslate">
$ git add sample.txt
</pre>
<p>■コミット</p>
<pre class="brush: cpp; title: sample code; notranslate">
$ git commit -m &quot;write comment&quot;
</pre>
<p>■ブランチを作成</p>
<pre class="brush: cpp; title: sample code; notranslate">
$ git branch issue1
</pre>
<p>■ブランチ一覧</p>
<pre class="brush: cpp; title: sample code; notranslate">
$ git branch
</pre>
<pre>
実行結果例
   issue1
 * master
頭に【*】がついているものが現在のブランチ
</pre>
<p>■ブランチの切り替え</p>
<pre class="brush: cpp; title: sample code; notranslate">
$ git checkout issue1
</pre>
<pre>
checkoutコマンドに『-b』オプションを指定して実行すると、ブランチの作成とチェックアウトをまとめて行える。
</pre>
<p>■ブランチをマージ</p>
<pre class="brush: cpp; title: sample code; notranslate">
$ git merge issue1
</pre>
<pre>
現在のブランチに『issue1』の内容を反映する
</pre>
<p>■ブランチを削除</p>
<pre class="brush: cpp; title: sample code; notranslate">
$ git branch -d issue1
</pre>
]]></content:encoded>
			<wfw:commentRss>http://black-son.com/tool/git/456/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
