Can I use git svn in a repository which I cloned using git?
I am using git to get my Webkit repository by following this: https://trac.webkit.org/wiki/UsingGitWithWebKit
So I did:
git clone git://git.webkit.org/WebKit.git WebKit
I have been upgrading my repository using "git pull"
My question is: Can I do ' git svn rebase' in my repository? Or I can only do that if I cr开发者_如何学JAVAeate my repository using this?
git svn init -T trunk http://svn.webkit.org/repository/webkit
git clone
checks out a git repository and has no link to SVN, so no. If you want to be linked to an SVN repository, follow the instructions from your link:
If you are a WebKit committer and want to be able to commit changes to the Subversion repository, or just want to check out branches that aren't contained in WebKit.git, you will need track the Subversion repository. To do that, inform git-svn of the location of the WebKit SVN repository, and update the branch that git-svn uses to track the Subversion repository so that it will re-use the history that we've already cloned from git.webkit.org rather than trying to fetch it all from Subversion:
cd WebKit git svn init -T trunk http://svn.webkit.org/repository/webkit git update-ref refs/remotes/trunk origin/master
I would recommend you to use SmartGit as an SVN client to avoid those ugly workarounds.
精彩评论