Answers for "delete a new branch in git"

2

remove branch local git

$ git branch -d branch_name
$ git branch -D branch_name
Posted by: Guest on December-13-2020
0

How to Create Branch Delete and View Branch

// View Current Branch status
git status

// List All Branch
git branch

// Create Branch
git branch <branch>

// Delete Branch (safe delete use -D to force delete)
git branch -d <branch>

// Deleting From remote
git push origin --delete crazy-experiment

Rename the current branch to <branch>.
git branch -a
Posted by: Guest on April-23-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language