Перебазирование и толкание, когда кто-то потянул ветку
git checkout master
git checkout -b featurebranch
git add -A
git commit -am "funky stuff"
git push origin featurebranch
Кто-то обновил мастер, который вызвал конфликт для FeatureBranch, поэтому мы не можем объединить, поэтому нужно сделать ребаз
git checkout master
git pull origin master
git checkout featurebranch
git rebase master
git push -f origin featurebranch --no-one else uses this branch so -f is fine
Что, если кто-то вытащил ветку FeatureBranch, а вы сделали ребаз и хотите нажать? Ты получишь:
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.
Так каков рабочий процесс сейчас?