Chon · 翀

The Neverland Blog

Git

Rename only remote branch

$ git push origin origin/old:refs/heads/new :old

Convert SVN to Git

$ git svn clone \
  --no-minimize-url \
  --authors-file=authors.txt \
  --no-metadata \
  --username bob \
  https://example.com/svn/Foo/Bar \
  ./Bar \
;

authors.txt:

bob = Bob <bob@example.com>
iris = Iris <iris@example.com>