Last active
December 16, 2015 09:52
-
-
Save eagafonov/41133887e513063e8fdd to your computer and use it in GitHub Desktop.
Вариант backport'а одним коммитом
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ещё один вариант решения проблемы из | |
http://limansky.me/posts/2015-12-16-Batch-cherry-picking-in-git.html | |
# создаём новую ветку, которая будет содежать только один комми со всеми изменеиями в по фиче | |
$> git check -b feature_backport master | |
$> git merge --squash --no-commit feature | |
$> git commit -m "Backport mega-feature from master to old-crappy-release-0.0.1" | |
# переносим ветку с одним коммитом на новую базу с помощью rebase | |
$> git rebase --onto release feature_backport^ feature_backport | |
# ... ну или cherry-pick | |
$> git checkout release && git cherry-pick feature_backport | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment