How to push bitbucket with intellij
I created a project in bitbucket and am trying to push code using intellij git. When I created the project, bitbucket gave me commands to run in git. Here are the commands I ran and the error I received:
git remote add origin ssh://git@bitbucket.org/[username]/[repo]
git push -u origin master
It looks strange because how does this command allow me to be authenticated? Now, here is the error I received.
Access denied (publication). fatal: Failed to read from remote storage.
Please make sure you have the correct permissions and the repository exists.
Any ideas?
0
source to share
2 answers
Do you have an ssh key added to your computer? If you are using oSX El Capitan or newer, you will need to add them every time you restart. osx ssh keys
How to add ssh keys
+2
source to share