Git: Delete a branch (local or remote)

To delete a local branch

To remove a remote branch (if you know what you are doing!)


The git manual says -p, —prune After fetching, remove any remote-tracking branches which no longer exist on the remote.

Git merge branch to master

Unsafe way

SAfe way — see conflicts

Git revert to commit

See commit named(example) 4cf9bb9653bf5fb13c24c423e0d3ea81348e4c7c

And push

Добавить комментарий

Войти с помощью: 

Ваш e-mail не будет опубликован. Обязательные поля помечены *


This site uses Akismet to reduce spam. Learn how your comment data is processed.