svn最新だけをclone
職場はsvnで個人的にgitを使うときなど、全部持ってくると死ぬほど時間がかかるので最新のtrunkだけ持ってくる。
% git svn clone -rHEAD https://svn.example.com/unk/trunk unksvnから更新分を持ってくる
% git svn rebasesvnへ更新分を反映する
% git svn dcommit空ディレクトリの削除をsvnにお伝えする
% git svn dcommit --rmdirsvnをgitに変換
-sは--stdlayoutでtrunk/, branches/, tags/構成を想定してブランチに変換してくれるそうです。
% git svn clone -s http://foo.com/repos/projectブランチ一覧
% git branchブランチ作成
% git branch michel-jacksonブランチ切り替え
% git checkout michel-jacksonブランチ作りつつ切り替え
% git checkout -b michel-jacksonブランチをマージ
% git checkout master
% git merge michel-jackson一個前のコミットをなかった事にする
% git reset HEAD^昔のコミットを修正する
% git rebase -i 695b1eb
(修正)
% git commit --amend
% git rebase --continueタグ付ける
% git tag v0.0.1
% git push --tagsタグ情報付きで持ってくる
% git pull --tags一つ戻して無理やりpush
% git reset --soft HEAD^
% git ci -a -m 'やりなおし'
% git push origin master --forceブランチをpush
% git push origin win32