How To Delete A Branch On GitHub - Tower Git Client
Có thể bạn quan tâm
- Features
- Pricing
- Support
- Documentation
- Contact Us
- Account Login
- Learn Git
- Video Course 24 episodes
- Online Book From novice to master
- Cheat Sheets For quick lookup
- Webinar Learn from a Git professional
- First Aid Kit Recover from mistakes
- Advanced Git Kit Dive deeper
- Blog
- Download Download
The GitHub.com browser interface allows you to delete (and create) remote branches. To do this, you need to navigate to the main page of the repository in your browser and then click the "# branches" link. On the branches overview page, you can then choose a branch to delete:
However, it's very important to understand that you can only delete remote branches, not any of the branches in your local Git repository!
In order to delete a local branch, you need to use Git on your local computer, either via the Command Line or through a desktop GUI.
Deleting a Branch in Git
Using Git on your local computer allows you to delete both local and remote branches. Let's start with deleting a local branch. On the command line, you can type the following:
$ git branch -d <local-branch>To delete a remote branch, you need to use the "git push" command:
$ git push origin --delete <remote-branch-name>The Git Cheat Sheet
No need to remember all those commands and parameters: get our popular "Git Cheat Sheet" - for free!
Download Now for FreeIn case you are using the Tower Git client, you can delete both local and remote branches simply from the contextual menu. Also, if you decide deleting a branch was a mistake, you can undo this with a simple "CMD+Z" keyboard shortcut:
Learn More
- Check out our detailed FAQ article on How to Delete a Local Branch
- More frequently asked questions about Git & version control
Get our popular Git Cheat Sheet for free!
You'll find the most important commands on the front and helpful best practice tips on the back. Over 100,000 developers have downloaded it to make Git a little bit easier.
New content and updates Yes, send me the cheat sheet and sign me up for the Tower newsletter. It's free, it's sent infrequently, you can unsubscribe any time. I have read and accept the Privacy Policy. I understand that I can unsubscribe at any time.About Us
As the makers of Tower, the best Git client for Mac and Windows, we help over 100,000 users in companies like Apple, Google, Amazon, Twitter, and Ebay get the most out of Git.
Just like with Tower, our mission with this platform is to help people become better professionals.
That's why we provide our guides, videos, and cheat sheets (about version control with Git and lots of other topics) for free.
About
- About
- Blog
- Merch
- Tower Git Client
Git & Version Control
- Online Book
- First Aid Kit
- Webinar
- Video Course
- Advanced Git Kit
- FAQ
- Glossary
- Commands
Web Development
- Website Optimization
- Python and Fauna Tutorial
Cheat Sheets
- Command Line 101
- Git
- Git for Subversion Users
- HTML
- Hugo
- JavaScript
- Markdown
- PowerShell
- Regex
- Ruby on Rails
- Tower Git Client
- Visual Studio Code
- Website Optimization
- Workflow of Version Control
- Working with Branches in Git
- Xcode
Updates, Courses & Content via Email
Updates about Tower, discounts, and giveaways as well as new content from the Tower blog. Free email course "Learn Git with Tower" (8 emails) Free email course "Tips & Tricks for Tower" (10 emails) I have read and accept the Privacy Policy. I understand that I can unsubscribe at any time by clicking on the unsubscribe link in any email. Updates about Tower, discounts, and giveaways as well as new content from the Tower blog. Free email course "Learn Git with Tower" (8 emails) Free email course "Tips & Tricks for Tower" (10 emails) I have read and accept the Privacy Policy. I understand that I can unsubscribe at any time by clicking on the unsubscribe link in any email.Want to win one of our awesome Tower shirts? Tell your friends about Tower!
Share on TwitterWe'll pick 4 winners every month who share this tweet! Follow @gittower to be notified if you win!
Yes, send me instructions on how to get started with Tower. Yes, I want to hear about new Tower updates, discounts and giveaways as well as new content from the Tower blog. I have read and accept the Privacy Policy. I understand that I can unsubscribe at any time.Từ khóa » Xóa Branch Github
-
4. Xóa Branch - Backlog
-
Cách Xóa Branch Trên GitHub - AnonyViet
-
[Git] Xóa Branch (nhánh) Local Và Remote (server)
-
Cách Xóa Một Nhánh Trong Git Cục Bộ Và Từ Xa
-
Creating And Deleting Branches Within Your Repository - GitHub Docs
-
Deleting And Restoring Branches In A Pull Request - GitHub Docs
-
Git - Xóa Local Branch - Freetuts
-
How To Delete A Branch In GitHub - Nira
-
How Do I Delete A Git Branch Locally And Remotely? - Stack Overflow
-
How To Delete A Branch On GitHub - How-To Geek
-
How To Delete A Git Branch Both Locally And Remotely
-
Git Delete Branch – How To Remove A Local Or Remote Branch
-
Delete A Branch With An Open Pull Request | GitHub Changelog
-
Một Số Trường Hợp Khi Sử Dụng Git - Viblo