Проблема в том, что я начал работать с веткой с именем DDH-112
и перенес ее в репозиторий, но затем изменил имя этой ветки с помощью git branch -m <newname>
, так как предыдущая была неправильной.Теперь я не могу перенести изменения в новую ветку.Он говорит:
fatal: The upstream branch of your current branch does not match
the name of your current branch. To push to the upstream branch
on the remote, use
git push origin HEAD:DDH-122
To push to the branch of the same name on the remote, use
git push origin feature/DDH-129-implement-paddings
После выполнения git push origin feature/DDH-129-implement-paddings
я получаю ошибку:
! [rejected] feature/DDH-129-implement-paddings -> feature/DDH-129-implement-paddings (non-fast-forward)
error: failed to push some refs to 'git@bitbucket.org:apptension/dontdrivehigh.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
git pull вообще не помогает.Я хотел бы иметь разницу после нажатия на ветку с новым именем.Можно ли перенести эти изменения в эту ветку?