I created a new project in intelliJ from a git repo. Like so
file->new project->from version control -> git
I put in the repo address and all is well. the code downloaded and it's all up to date.
I created a new branch in intelliJ
VCS->git->branches->remote branches -> origin/master -> checkout as -> "my_new_branch_name"
The only change I've done is add a .gitignore file.
I made a commit doing
VCS->commit
and it looks ok. Now when I try to push to the repo it fails with an error
Push Failed Failed with error : repository 'https//github.com/organization/my_repo.git/' not found
Not sure how this is possible since I just created the project from that exact link.