Skip to content

Commit

Permalink
Contribution of Anisha Shruti
Browse files Browse the repository at this point in the history
  • Loading branch information
anishashruti committed Aug 4, 2021
1 parent 5bcb147 commit 85c7ae8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions Contributors.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- [Ajay yadav](https://github.com/AjayYadavAi)
- [Thanos Dimitriades](https://github.com/thanosades)
- [ASHUTOSH KUMAR CHOUDHARY]}:)))(https://github.com/Ash-KODES)
- [Anisha Shruti](https://github.com/anishashruti)
- [Yogi Arif Widodo, 2021](https://github.com/yogithesymbian)
- [Riya Gupta 👩](https://github.com/RiyaGupta89)
- [Andy Chep](https://github.com/AndreyChepik)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#Deleting a locally created Branch

This will be handy when you accidently misspelled a branch name.

This can be done in *3* ways

```
git branch -D <branch_name>
```

```
git branch --delete --force <branch_name> # Same as -D
```

```
git branch --delete <branch_name> # Error on unmerge
```

-D stands for --delete --force which will delete the branch even it's not merged (force delete), but you can also use -d which stands for --delete which throw an error respective of the branch merge status...

0 comments on commit 85c7ae8

Please sign in to comment.