I initiated my git repo in my IntelliJ IDEA project. Then I click on share via Bitbucket under "Import into Version Control" Note: I've installed the plugin from jetbrains repository.
All works fine, I even am able to create the repo on Bitbucket, but when I try to push, nothing happens. When I try again through VCS > GIT > Push, it says that there are no remotes defined.
Please help. I mean, there's no error message nothing. I manage to push to github just fine though.
Following this answer, you might need to open the "Git Bash", and define a remote:
git remote add origin http//IP/path/to/repository
git push -u origin master
In IntelliJ IDEA right-click on project select Synchronize 'YourProject'
For the reason behind the '-u
' (upstream branch) option, see:
"Why do I need to explicitly push a new branch?".