github - How can i find issue cause in git? -
i have git issues (not again huuummmmpf):
cannot push specific branch
i've re-pull re-push pull -rebase , re-push .
nothing new happened.
(i've figured out way send work)
have field of search suggest?
i want able of resolving issue myself in future.
actually, not having answers student understandable. bit lost , ressourceless case (and makes me quite uncomfortable).
can found clues figure out happening damn repo.
ps: had many projects saved efforts, of you.
$ git pull origin stef github.com:pierrend/approfusion * branch stef -> fetch_head up-to-date. $ git pull --rebase origin stef github.com:pierrend/approfusion * branch stef -> fetch_head current branch 25_push date. $ git push origin stef git@github.com:pierrend/approfusion.git ! [rejected] stef -> stef (non-fast-forward) error: failed push refs 'git@github.com:pierrend/approfusion.git' hint: updates rejected because pushed branch tip behind remote hint: counterpart. check out branch , merge remote changes hint: (e.g. 'git pull') before pushing again. hint: see 'note fast-forwards' in 'git push --help' details.
the git pull --rebase give clue:
current branch 25_push date.
that means git branch
should show branch 25_push
being current branch.
switch stef
branch:
git checkout stef git pull --rebase git push
i recommend setting push policy 'simple', in order limit push current branch (as opposed local branches)
git config --global push.default simple
Comments
Post a Comment