From c706d50ca482ad5b6c2f3f88dafc9029246af615 Mon Sep 17 00:00:00 2001 From: Ahmedur Rahman Shovon Date: Thu, 28 Mar 2019 11:24:55 +0600 Subject: [PATCH] updated git-branch.md - Added branch listing - Added branch deleting --- git-branch.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/git-branch.md b/git-branch.md index 974c2bce0..da3ad10a6 100644 --- a/git-branch.md +++ b/git-branch.md @@ -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