I have github configured for push on macOS. But I need to push to bitbucket I created a remote repository there, cloned it into my project
remote add origin git@bitbucket.org:xxx fatal: remote origin already exists.
git push origin master Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the repository exists.
How to set it up correctly? C github everything works for me.
origintaken from you for github. For example,remote add bitbucket git@bitbucket.org:xxx. - 4pergit push bitbucket master. Well, with the rights you also have a problem, as they wrote in the answer .. - 4per