Delete branch from remote location –
git push -d remote-name branch-name
Delete branch from localhost –
git branch -D branch-name
git branch -d branch-name
Delete branch from remote location –
git push -d remote-name branch-name
Delete branch from localhost –
git branch -D branch-name
git branch -d branch-name
$ git remote -v
(remote name like – origin) repository url (fetch)
(remote name like – origin) repository url (push)
2. Remove Remote
$ git remote rm (remote name like – origin)
3. then add new remote
$ git remote add origin repo url