git version 1.7.1
svn, version 1.6.12
Ubuntu 10.10
Ho appena git e ho usato svn. Ma non ho usato poi insieme. Ho avuto un repository git, e ho dovuto più il mio repository a uno di sovversione. Quindi ho usato git-svn. Che funziona bene, il più delle volte. Tuttavia, trovo andare in tondo.git-svn rebase e problema dcommit
Sono l'unico a lavorare su questo progetto.
Apporto alcune modifiche al mio ramo. Ho poi in scena loro:
git stage gateway.c
Poi li impegnano a livello locale per git:
git commit m"Made some changes"
allora voglio a loro impegnarsi per sovversione. Ricevi gli ultimi aggiornamenti:
git svn rebase
Allora ottengo il seguente messaggio:
It seems that I cannot create a rebase-apply directory, and
I wonder if you are in the middle of patch application or another
rebase. If that is not the case, please
rm -fr /home/joe/projects/gateway/.git/rebase-apply
and run me again. I am stopping in case you still have something
valuable there.
rebase refs/remotes/trunk: command returned error: 1
I then doing the following:
rm -fr /home/joe/projects/gateway/.git/rebase-apply
Poi faccio di nuovo un rebase:
git svn rebase
Il messaggio è questo:
First, rewinding head to replay your work on top of it...
Applying: Issue with getting the port from the user context.
Using index info to reconstruct a base tree...
Falling back to patching base and 3-way merge...
Auto-merging driver.c
Auto-merging gateway.c
CONFLICT (content): Merge conflict in gateway.c
Failed to merge in the changes.
Patch failed at 0001 Issue with getting the port from the user context.
When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To restore the original branch and stop rebasing run "git rebase --abort".
rebase refs/remotes/trunk: command returned error: 1
Che mi mette su un ramo chiamato, e w cappello è questo ramo e a cosa serve ?:
*(no branch)
Quindi ho risolto i conflitti su quel ramo. Quindi eseguo il checkout del mio ramo play_video. Provo a farne un altro:
svn git dcommit
E finisco di nuovo in circolo.
Prima di iniziare tirando fuori i miei capelli, può alcuni mi offrire alcuni consigli,
Molte grazie per qualsiasi suggerimento,
avendo lo stesso problema qui ... quasi 3 anni e nessun suggerimento ... – Quartz