Skip to main content

Command Palette

Search for a command to run...

Deleting a branch with Git

💡A branch can be deleted, this applies only to locals branches.

Updated
1 min read
Deleting a branch with Git
C

Hi, I'm Cristina Ramirez, I'm a computer engineer and software developer with more than 10 years of experience as backend developer, web application development, API REST services for mobile applications, system analysis and logic.

Programming languages: Ruby, PHP, C, C++, C#, CSS, JavaScript.

Frameworks: Ruby on Rails, PHP (Codeigniter, APPHP).

Experience of relational databases (Postgres, MySql, Oracle) and NoSQL databases (MongoDB, Neo4j).

I like innovation and teamwork.

🇻🇪 Spanish

1.- In this example, we are inside stable branch because we are going to delete staging branch. You should be inside a branch different that the branch you are going to delete. Use git checkout <branch's_name> command to move you between branches.

git checkout stable

2.- See all branches with git branch command.

git branch

3.- Delete the branch with git branch -d <branch's_name_to_delete> command.

git branch -d staging

Reference:

git-scm.com/book/es/v2

40 views