updated git-branch.md

- Added branch listing
- Added branch deleting
This commit is contained in:
Ahmedur Rahman Shovon 2019-03-28 11:24:55 +06:00 committed by GitHub
parent fc41560d71
commit c706d50ca4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

View File

@ -34,6 +34,14 @@ git remote prune origin
Deletes `origin/*` branches in your local copy. Doesn't affect the remote.
### List existing branches
```bash
git branch --list
```
Existing branches are listed. Current branch will be highlighted with an asterisk.
### List merged branches
```bash
@ -42,6 +50,14 @@ git branch -a --merged
List outdated branches that have been merged into the current one.
### Delete branch forcefully
```bash
git branch -D $branchname
```
Delete a branch irrespective of its merged status.
### Delete remote branch
```bash