Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tommylinks/de047abd03db1a788b0836a8b4ecb0ac to your computer and use it in GitHub Desktop.
Save tommylinks/de047abd03db1a788b0836a8b4ecb0ac to your computer and use it in GitHub Desktop.
# создайте новую ветку из текущего состояния 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