Git Push Erreur: impossible de pousser des refs?
Je suis en train de git push mon repo (TEST) à distance de la branche (TEST-tapariak) en utilisant la commande suivante:
git push origin TEST:TEST-tapariak
J'obtiens l'erreur suivante:
To ssh://git.example.com:2222/pkg/PARISService
! [rejected] TEST -> TEST-tapariak (non-fast-forward)
error: failed to push some refs to 'ssh://git.example.com:2222/pkg/PARISService'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
J'ai vu question similaire et n'a git pull --rebase, git pull --rebase origine d'ESSAI, et la commande git pull --rebase origine de TEST-tapariak mais ne fonctionne pas pour moi.
Quelqu'un peut-il me guider comment résoudre ce problème?
Il semble que il ya engage sur la
Essayez
Test-tapariak
branche qui ne sont pas locaux. Exécuter cette commande git log git log --pretty=oneline --abbrev-commit --all
regardez pour voir si les branches ne sont pas synchronisés. (Quelqu'un peut avoir commis de la branche à distance sans que vous le sachiez)Essayez
git pull --rebase origin TEST-tapariak:TEST
premier.OriginalL'auteur Keshav Taparia | 2017-10-04
Vous devez vous connecter pour publier un commentaire.
Tirer à distance
TEST-tapariak
branche en localTEST
direction générale d'abord, puis l'enfoncer.Je suppose que, Pour
git pull
il essaiegit pull origin TEST
parce qu'il est suivi à distance de la brancheTEST
, pasTEST-tapariak
. Donc,git pull origin TEST-tapariak
devrait fonctionner effectivement. Cela fonctionne?OriginalL'auteur Sajib Khan
utiliser cette commande pour télécharger plein de projet avec force,
OriginalL'auteur Maijied Hasan Shuvo
Aller à maître ne
git pull
puis retour à votre secteur et à faire:
git rebase -i master
S'il y a des conflits:
git add --all
git rebase --continue
Enfin, ne
git push
OriginalL'auteur prisoner_of_azkaban
Pouvez-vous faire ce qui suit:
Et enfin,
OriginalL'auteur Sheikh Hanif