* SVN to GIT Migration update local git branches with new svn commits
@ 2019-12-15 9:08 Madushan Chathuranga
0 siblings, 0 replies; only message in thread
From: Madushan Chathuranga @ 2019-12-15 9:08 UTC (permalink / raw)
To: git
I'm doing a svn to git migration using git svn. I have now done the
migration from svn to git and I have created local git branches for
each remote ref.
But my problem is if there are commits to svn to a particular branch
(eg: trunk) after the migration I thought I could use git svn fetch.
which actually works fine. but when I do that only the remote refs are
getting updated. As I said I have created local branches using,
for b in $(git for-each-ref --format='%(refname:short)' refs/remotes);
do git branch $b refs/remotes/$b && git branch -D -r $b; done
when i do the fetch my local branches aren't getting updated. Is there
a work around to do that. Also I noticed in the migration svn's trunk
is mapped to git's master branch. So my latest commits to svn trunk
arent getting mapped git's master branch when I do git svn fetch.
instead of it's updating remote ref of trunk branch in git.
https://stackoverflow.com/questions/29161646/incremental-migration-from-svn-to-git
I was following this thread which is where I learned about git svn
fetch.
Appreciate if anyone could help on this
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-12-15 9:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-15 9:08 SVN to GIT Migration update local git branches with new svn commits Madushan Chathuranga
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).