Ich möchte meinen Code zu Gerrit schieben. Ich habe diese Zeilen in meinem ~/.gitconfigPush to Gerrit Befehl Fehler von Gerrit verboten
[remote "origin"]
url = ssh://[email protected]:29418/project/cloud
fetch = +refs/heads/*:refs/remotes/origin/*
push = refs/heads/*:refs/for/*
Wenn ich in meinem Quellbaum schieben, ich habe Fehler:
'git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v origin refs/heads/master:refs/heads/refs/for/master
Pushing to ssh://[email protected]:29418/project/cloud
remote:
remote: Processing changes: refs: 1
remote: Processing changes: refs: 1, done
To ssh://[email protected]:29418/project/cloud
! [remote rejected] master -> refs/for/master (prohibited by Gerrit)
error: failed to push some refs to
ssh://[email protected]:29418/project/cloud
Pushing to ssh://[email protected]:29418/project/cloud
remote:
remote: Processing changes: refs: 1
remote: Processing changes: refs: 1, done
To ssh://[email protected]:29418/project/cloud! [remote rejected] master ->
refs/for/master (prohibited by Gerrit)
error: failed to push some refs to ssh://[email protected]:29418/project/cloud
Completed with errors, see above
Es scheint, mein sourcetree Push senden Befehl zweimal. auch der Befehl ist falsch:
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v origin refs/heads/master:refs/heads/refs/for/master
Es ist der richtige Befehl scheint sein sollte:
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v origin master:refs/for/master
wo ist mein Fehler in meiner Konfiguration?
Vielen Dank im Voraus.
Es scheint SourceTree hinzugefügt refs/heads in meinem Befehl. Wie kann ich dieses Präfix in meinem Befehl löschen? – user3034559