简体   繁体   中英

GIT pull from a bare repository

I have a GIT repo A which was setup using "git svn" from a subversion repo. I made a clone of A called B, where B is a bare repository(git clone --bare). I clone C from B, work on C and periodically push my changes to B (the reason I made B bare). Now, when I want to pickup the latest updates from subversion I run "git svn rebase" on repo A. How do I pull these updates from A to B. Moving to B and executing "git pull" fails with the error - "fatal: /usr/local/git-1.7.0/libexec/git-core/git-pull cannot be used without a working tree.". What is the correct way to move the updates from A to B

Since B is bare, you probably want to push the changes from A into B.

What you've described seems like a lot of pushing and pulling without an obvious benefit. Normally you would use git-svn by working directly in the repository that you created using git svn clone . Is there a particular reason why you're creating all those extra repositories?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM