<?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:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>Aerialarts &#187; git</title>
	<atom:link href="http://aerial.st/tags/git/feed/" rel="self" type="application/rss+xml" />
	<link>http://aerial.st</link>
	<description></description>
	<lastBuildDate>Mon, 16 Jan 2012 09:56:44 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/tags/git/feed/" />
		<item>
		<title>git reset直前のコミットはORIG_HEADに保存されてる</title>
		<link>http://aerial.st/archive/2011/12/07/git-show-orig-head/</link>
		<comments>http://aerial.st/archive/2011/12/07/git-show-orig-head/#comments</comments>
		<pubDate>Wed, 07 Dec 2011 13:34:14 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=1191</guid>
		<description><![CDATA[間違えてgit reset（&#8211;soft/&#8211;hard問わず）してしまった場合とか、取り消すのはいいんだけどコミットログは見たいとか思ったら、 git show ORIG_HEAD すれば良い。 ORIG_HEADはgit resetする直前のHEADの状態を指しているので、git diffで差分を見るといったこともできる。 git diff ORIG_HEAD 参考 「Gitを使いこなすための20のコマンド」のgit resetの項]]></description>
		<wfw:commentRss>http://aerial.st/archive/2011/12/07/git-show-orig-head/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2011/12/07/git-show-orig-head/" />
	</item>
		<item>
		<title>git-svnでリモートのブランチを作成・コミット</title>
		<link>http://aerial.st/archive/2011/08/22/git-svn-remote/</link>
		<comments>http://aerial.st/archive/2011/08/22/git-svn-remote/#comments</comments>
		<pubDate>Mon, 22 Aug 2011 12:05:31 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=1107</guid>
		<description><![CDATA[git svn branch &#60;BRANCH&#62;で&#60;BRANCH&#62;というリモートブランチがbranches/&#60;BRANCH&#62;に作られる。 これはgit branch -rで確認できる。 $ git svn branch foo $ git branch -r git checkout &#60;BRANCH1&#62; remotes/&#60;BRANCH2&#62;でコミット先がbranches/&#60;BRANCH2&#62;を向いたローカルブランチ&#60;BRANCH1&#62;が作成される。 これはgit svn infoで確認できる。 $ git checkout foo remotes/bar $ git svn info このローカルブランチに対して変更を加えていき、最終的にgit svn dcommitでリモートブランチに反映する。 $ git svn dcommit コミット先のURLをgit checkoutでしか変更できないものなのかな？既存のローカルブランチのコミット先を変更する方法がある気がするんだけど、そこまで調べきれなかった。 そろそろgitの本が欲しい。]]></description>
		<wfw:commentRss>http://aerial.st/archive/2011/08/22/git-svn-remote/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2011/08/22/git-svn-remote/" />
	</item>
		<item>
		<title>git-svnを使う際に参考になるサイト</title>
		<link>http://aerial.st/archive/2011/04/26/git-svn/</link>
		<comments>http://aerial.st/archive/2011/04/26/git-svn/#comments</comments>
		<pubDate>Mon, 25 Apr 2011 19:18:52 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=1034</guid>
		<description><![CDATA[git-svnを使うことでsubversionのリポジトリをgitで操作できる。 チェックアウトしてからの作業の流れは次のような感じ。 svnリポジトリからgit-svnでチェックアウトしてきてgitのローカルリポジトリに変換 gitでローカルリポジトリに変更をコミット ローカルリポジトリにコミットされた内容をgit-svnでsvnリポジトリにコミット 以下、参考になるサイトを列挙してみる。 git-svnの使い方を覚えた はgit-svnのチュートリアル。 Git入門 ゼロから始めるGitドリルはgitそのもののチュートリアル。Git/Subversionコマンド対応表なんてものもある。 操作ミスなど困ったときにはGit初心者が絶対に覚えておくべきコマンドや git-svn駆け込み寺などが役立ちそう。 ただgitはsvnとは思想が全く違うので単純に対応はしないと思う。ブランチングのモデルについてはRubyKaigi2009でのgit/githubに関するセッションが、英語だけど図が多用されていてイメージしやすい。 svnを使わずにgitをリモートのリポジトリとして開発する際にはブランチの作成方法等でルールが必要になると思うけど、A successful Git branching model（翻訳版）に従えば絶対に大丈夫という話もあったりする。]]></description>
		<wfw:commentRss>http://aerial.st/archive/2011/04/26/git-svn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2011/04/26/git-svn/" />
	</item>
		<item>
		<title>gitリポジトリを立ててSSHで利用</title>
		<link>http://aerial.st/archive/2010/06/19/git-via-ssh/</link>
		<comments>http://aerial.st/archive/2010/06/19/git-via-ssh/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 06:17:57 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=705</guid>
		<description><![CDATA[以前daemonを起動してリポジトリ立てる方法について書いたけど、今回はgitのリポジトリを立てる(SSH経由) を参考にSSH経由でできるようにやってみた。 リポジトリを置くサーバのホスト名はexampleとする。 ユーザの追加 リポジトリを操作するためのgitユーザをexampleサーバに追加する。 Mac OS 10.6の場合、ユーザは dsclで追加 する。 このときシェルにgit-shell（MacPortsで入れたなら /opt/local/bin/git-shell にある）を設定する。こうすることでpush,pullのみを受け付けるようになる。 リポジトリの作成 example:/Users/gitディレクトリ配下にリポジトリを集約するreposディレクトリを作成し、今回はprojectというリポジトリを作成してみる（末尾に.gitを付けるのは慣習？）。 % cd /Users/git % sudo -u git mkdir repos % sudo -u git mkdir repos/project.git % cd repos/project.git % sudo -u git git init --bare 鍵を追加 gitユーザにSSHでログインするための鍵を追加する。 % cat ~/.ssh/id_rsa.pub > /Users/git/.ssh/authorized_keys cloneしてみる $ git clone git@example:repos/project.git $ cd project pushしてみる masterブランチでのコミット内容をorigin（サーバ側）に適用する。 $ git push origin master ただこのときに次のようなエラーがでるかもしれない。 $ git push -v origin master Pushing to git@example:repos/project.git To git@example:repos/project.git ! [rejected] master -> master (non-fast-forward) [...]]]></description>
		<wfw:commentRss>http://aerial.st/archive/2010/06/19/git-via-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2010/06/19/git-via-ssh/" />
	</item>
		<item>
		<title>Gitで無視するファイルを設定する</title>
		<link>http://aerial.st/archive/2010/02/01/gitignore/</link>
		<comments>http://aerial.st/archive/2010/02/01/gitignore/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 15:12:38 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[git]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=611</guid>
		<description><![CDATA[gitの操作（addやstatus）で特定のファイルを無視するには、リポジトリのルートディレクトリに.gitignoreファイルを設定すればよい。 ただし以下の点に注意。 .gitignore自体をadd/commitしないと効果は現れない 一度commitしたファイルはあとから無視設定をしても効果がない（一旦リポジトリから削除する必要がある）（gitignoreでハマる） 以下、自分の設定内容をメモっておく。 Xcodeで作成したプロジェクト *.DS_Store profile build/* *.pbxuser *.mode1v3 buildディレクトリ以下の更新内容は無視して構わない（と以前どこかで読んだ）。あとはnib/xib以下にできるバックアップファイルとか、Finderの設定ファイルとか。 Stack Overflowにもいろいろな例があがっている（そこからgistを作った人もいる）。 Rails Railsアプリをgitで管理するときのやり方を参考にするとよさそう。]]></description>
		<wfw:commentRss>http://aerial.st/archive/2010/02/01/gitignore/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2010/02/01/gitignore/" />
	</item>
		<item>
		<title>Mac上にgitの公開リポジトリを作る</title>
		<link>http://aerial.st/archive/2009/07/22/public-git-repository-on-mac/</link>
		<comments>http://aerial.st/archive/2009/07/22/public-git-repository-on-mac/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 09:55:25 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[git]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=502</guid>
		<description><![CDATA[git 1.6.3.3 on Mac OS X 10.5 以下の方法でとりあえず動く。ただし安全かどうかは保障できない。 git-coreのインストール $ sudo port install git-core +gitweb # 一応gitwebも リポジトリの置き場所を作る ここでは/opt/local/var/git/repos以下にリポジトリを作ると仮定する。 $ sudo mkdir /opt/local/var/git/repos $ cd /opt/local/var/git/repos daemonを起動 $ sudo /opt/local/libexec/git-core/git-daemon --export-all --enable=receive-pack --base-path=/opt/local/var/git/repos &#8211;base-pathでリポジトリの置き場所を指定する。&#8211;export-allと&#8211;enable=receive-packはまだよくわかってない。 リポジトリを作る 新規に空のリポジトリを作る場合は次を実行。 $ cd /opt/local/var/git/repos $ sudo mkdir testrepos.git $ cd testrepos.git $ sudo git init --bare $ sudo touch git-daemon-export-ok どっかからクローンしてくる場合（例えば既存のローカルリポジトリ/path/to/cloned/reposを公開したい場合）には次を実行。こっちのがsudoをあまりしなくて済むので楽かも。 $ cd /opt/local/var/git/repos $ sudo git clone --bare /path/to/cloned/repos ./testrepos.git $ sudo touch git-daemon-export-ok $ sudo touch testrepos.git/git-daemon-export-ok どちらにせよ&#8211;bareが大事。 cloneしてみる $ cd ~/tmp $ [...]]]></description>
		<wfw:commentRss>http://aerial.st/archive/2009/07/22/public-git-repository-on-mac/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2009/07/22/public-git-repository-on-mac/" />
	</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/


Served from: aerial.st @ 2012-02-09 01:55:28 -->
