I'm struggling with getting this setup. I want to use Github for public repositories and BitBucket for private repositories. I've created the SSH key pairs and registered with both: id_rsa and id_rsa_bb. These exist in ~/.ssh/ i have a config file for gh and bb with the right information in. From terminal I can interact as I would expect.
PHPStorm is set up to use Git. The path to git executable is set and tested. I have set up user id and password for Github and tested (but I don't really want to use this, I want to use SSH keys.) SSH is using built-in. BitBucket plugin is downloaded and installed from that chaps fork, not from Atlassian (sorry, I forget his name.) Login and password is set in preferences for the plugin and tested.
So, switching to PHPStorm, these are my scenarios I'm trying to test:
- No Github repository, create PHPStorm project. Add file. Commit to Git. Push to Master: create remote repository and push file.
- Github repository, clone PHPStorm project from that. Add file. Commit to Git. Push to Master - file added to remote repository
- No BitBucket repository, create PHPStorm project. Add file. Commit to Git. Push to Master: create remote private repository and push file.
- BitBucket private repository, clone PHPStorm project from that. Add file. Commit to Git. Push to Master - file added to remote repository
What I don't know of course is what is/isn't possible with PHPStorm so that doesn't help. I don't find the inbuilt help that helpful in this case although it does mention having to have SSH keypairs in ~/.ssh with the default name and a config file if using different keys.
Can anyone help me work out what I need to do in PHPStorm in each of these scenarios?