I've migrated a repo from SVN to Git using svn2git
and am happy with everything apart from one thing. How can I remove the remotes/svn/trunk
branch that shows in git branch -a
:
$ git branch -a
* master
remotes/origin/master
remotes/svn/trunk
I cleaned up after svn2git
by doing the following:
git config --remove-section svn-remote.svn
git config --remove-section svn
rm -rf .git/svn
But I still have the remotes/svn/trunk
sitting there! I get this if I grep the .git
directory for svn
:
$ grep -R svn .git
.git/info/refs:e6dd7a08d86d9b0944891755602b25ce12d30bb0 refs/remotes/svn/trunk
Binary file .git/objects/pack/pack-10cdd522d8f0fcc9b30efeddbdad3d0281c1e6da.pack matches
.git/packed-refs:e6dd7a08d86d9b0944891755602b25ce12d30bb0 refs/remotes/svn/trunk
Am I safe to go into those files and remove the references or is there a cleaner way to get rid of that old cruft?