瀧内さんの記事を参考にgit-svn使い始めましたが便利です。svnだと1コミットに複数の修正(バグ修正、機能追加、type修正など)をつい入れてしまうのですが、gitだとそういうこともなくなります。なのでcommitメッセージが書きやすい。

###Rails向けgit環境設定
shell>>
$git svn clone svn-repo-URL
$git add log
$git add tmp
$touch tmp/.gitignore log/.gitignore .gitignore
<<--

Rails_ROOT直下の.gitignore:最後の2行はemacs用
(tmpやlogの下の.gitignoreは空ファイルでOKです)
shell>>

.gitignore

log/.log
tmp/**/

~
#
#
<<--

###git stash:へそくり
何かの修正をすでに加えている最中に、typoや緊急の修正分だけをコミットしたくなったとき。
(修正として新たに追加したファイルはstashしてもgit-status中に出てきますが、dcommitは可能です)
shell>>
$git stash save
edit edit
$git commit -a -m "fixed typo"
$git svn dcommit
$git stash apply
<<--

###svn revert:ファイル一個だけ編集前のものに戻す
shell>>
$git checkout -- filename
<<--

###その外よく使うコマンド
shell>>
$git diff
$git diff filename
$git add filename
$git add .
$git status
$git rm -f filename
<<--

###Refs
http://blog.s21g.com/articles/583
http://coderepos.org/share/wiki/FAQ/Git
http://railscasts.com/episodes/96:railscasts Git on Rails

posted by satoko satoko on Wed 28 May 2008 at 06:42 with 1 comment
satoko satoko 05/29 09:43
stashは「ヘソクリ」「隠してあるもの」という意味なんです。
http://eow.alc.co.jp/stash/UTF-8/?ref=sa
Contents rssrss
NSAssertやNSLogを無効にする:-DNS_BLOCK_ASSERTIONS=1とNS_BLOCK_ASSERTIONS
GDBでview.frameを表示させる
Core Animationについてのリンク集
[iPhone] new BSDライセンスについてライセンス引用のメモ
Implementing a Container View Controller in UIViewController Class Reference
UITableView用のNSIndexPathの作り方
Xcodeのテンプレート、View-based ApplicationとWindow-based Applicationの違い
CopyOnSelectのLion対応
Xcode4のCode Snippetsを別のPCに移動する+gitで管理する
[iPhone] Singleton: iOS4以降はGCDのdispatch_onceを使う
Tags
iphone開発gitIBInterfaceBuilderiOSSIMBLSnippetsterminaltwitterxcodeXcode4
Comments rssrss
guest guest: Muchos turistas buscan la mejor forma de llegar a ... 05/30 03:19
guest guest: San Antonio de Areco es conocido como la cuna de l... 05/27 19:47
guest guest: Optimizar el tiempo durante un viaje de negocios e... 05/18 00:46
guest guest: Para muchos turistas, el transporte publico y la l... 05/15 18:22
Services from s21g
MagicBag
MagicBagは、Cloudflare R2やS3互換ストレージをMacのFinderから扱えるファイル同期クライアントです。
アンテナショップめぐり
東京にある全国のアンテナショップ、イベント、特産品を地図や条件から探せるサービスです。
YOMU Web小説リーダー
YOMUは、Web小説の読み上げに特化したiPhoneアプリです。
補助探
公開されている補助金・助成金情報を集約し、条件に合う制度を探しやすくするサービスです。
jotter.me
jotter.meは、考えやアイデア、情報を書き留めるためのノートサービスです。