I git push
and I get the following error.
To [email protected]: name / project.git
21b430d..dd378ca master - & gt; master
! [rejected] release - & gt; release (non-fast-forward)
error: failed to push some refs to '[email protected]: jkubicek / my_proj.git'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. If you did not intend to push that branch, you may want to
hint: specify branches to push or set the 'push.default' configuration
hint: variable to 'current' or 'upstream' to push only the current branch.
as I understand it, except
git push https: //[email protected]/visit/visit.0.11.git
there you can also specify your branch, how should you specify it?
Answer 1, authority 100%
To be sure, make the current branch the default (so as not to miss when pushing):
git config --global push.default current
Then return it back to the master. And don’t forget to fetch changes from branches via git fetch