Created
September 11, 2016 15:15
-
-
Save tommylinks/de047abd03db1a788b0836a8b4ecb0ac 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
# создайте новую ветку из текущего состояния master | |
git checkout -b имя-новой-ветки | |
# удаляем коммит из ветки master | |
git checkout master | |
git reset HEAD~ --hard | |
git checkout имя-новой-ветки | |
# ваш коммит теперь живет в новой ветке :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment