Last active
January 18, 2024 13:00
-
-
Save tommylinks/df153a57308986bcc08c15a8906b56e7 to your computer and use it in GitHub Desktop.
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 "тут ваш комментарий" | |
# теперь изменения в нужной ветке |
Перенос строки слетел, спасибо!
😊
Благодарю╰(°▽°)╯ Очень помогли
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
git add . git stash
тут не вернолибо:
либо уж:
git add . ; git stash