Следите за новинками
в нашем Telegram канале. Жми, чтобы подписаться:)
⊗gtPmBrRm 40 of 65 menu
◀ ▶

Deleting branches in Git

As mentioned in previous lessons, Git does not delete branches when merging. If you no longer need a branch, you need to delete it with a special command. To do this, use the branch command with the -D flag, followed by the name of the branch to be deleted, separated by a space.

Let's delete our test branch as an example:

git branch -D test

After executing the command, we will see the following message:

Deleted branch test (was c440a0b).

Delete one of the side branches in your Git repository.

← →
↑
English▼
БеларускаяDeutschEspañolFrançaisPortuguêsРусский
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline