0

i wanted to delete git branch locally but i get the error

$ git branch -d remotes/origin/incident
error: branch 'remotes/origin/incident' not found.

please help me to solve this problem

Ali Asgher Badshah
  • 811
  • 1
  • 11
  • 34
  • remotes/origin ==> its not local branch, execute, $git branch command , identify the branch name you want to delete then execute: $git branch -d , to forcedelete use: $git branch -D , hope this will help: https://git-scm.com/docs, – dkb Jun 01 '18 at 11:18

1 Answers1

1

you are specifying remote branch. you need to specify local branch

git branch -d incident
code707
  • 1,663
  • 1
  • 8
  • 20