LoginSignup
3
3

More than 5 years have passed since last update.

git でいじってたものを途中から svn に push する

Posted at

はまったのでメモ
svn と git の repository を graft してあげないといけない
具体的な手順としては
% git svn init -s SVNレポジトリ
% git svn fetch
% git show-ref remotes/trunk # svn でとってきたところ hash値を取得
% git log --pretty=oneline # git 側のつなぎめのhash値を取得。普通は一番昔のもの
% echo "SVNのハッシュ値 gitでつなぐところのハッシュ値" > .git/info/grafts
% git svn dcommit

はまったのは、svn の repository が svn mkdir trunk branches tags したてのものでは駄目で、何か commit しとかないとうまくいかない。理由は不明

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3