October 2018
Intermediate to advanced
224 pages
6h 14m
English
Now that the project merged your contribution, you no longer need that feature branch that you created. It won’t hurt anything if you leave it lying around, but it doesn’t take long for these branches to build up and make a lot of clutter. Deleting it right after your pull request is accepted not only tidies up your testing environment, but it also makes it easier to locate the branches you need later and reduces the chance that you’ll accidentally work on this now-dead branch. Removing a branch is quite easy from the command line. Here’s an example where I removed a branch from my book repository:
| | Pliny:Book brasseur$ git branch -d makeacontribution |
| | Deleted branch makeacontribution (was 74da8bc). |
Note: This was a local branch. It’s ...
Read now
Unlock full access