#git #git_push
Делаю git push, получаю следующее сообщение об ошибке.
To git@github.com:name/project.git
21b430d..dd378ca master -> master
! [rejected] release -> release (non-fast-forward)
error: failed to push some refs to 'git@github.com: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.
как я понял, кроме
git push https://name@site.ru/visit/visit.0.11.git
туда еще указать свою ветку, как ее указывать надо?
Ответы
Ответ 1
Чтобы уже наверняка, сделайте текущую ветку дефолтной (чтобы не промахнуться при пуше): git config --global push.default current Потом верните обратно в мастер. И не забывайте забирать изменения из веток через git fetch
Комментариев нет:
Отправить комментарий