I set up a ssh key on the machine, cloned a branch on my local machine then tried to delete its associated branch on the remote. Below are my step.
- Delete the local branch using
git branch -D abc-123
- Set the url to be ssh one. (
git remote set-url origin git@git_server:group_name/product_name.git
) Source - Delete the remote branch using
git push origin --delete abc-123
Source
The problem is on step 3. it prompts for password and after I typed the correct one it say permission denied.
I wonder what I did wrong and how to fix it.