This file contains 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
# откатываем последний коммит, но не удаляем изменения | |
git reset HEAD~ --soft | |
git add . | |
git stash | |
# переключаемся на нужную ветку | |
git checkout имя-верной-ветки | |
git stash pop | |
git add . | |
git commit -m "тут ваш комментарий" | |
# теперь изменения в нужной ветке |