I have Intellij IDEA 12.0.1 I am using build-in Git plugin. I am able to create local repository. Now I want to upload my source code to remote repository. Can I do this with Intellij IDEA plugin?
Thank you.
After you've committed some changes, you'll probably want to push them from your local repository to GitLab. This functionality is again hidden in IntelliJ's menus: Click "VCS" > "Git" > "Push..." The window that opens will show a preview of all local commits that you will push to, the remote repository.
You can't upload your local Git repository to remote using IntelliJ IDEA plugin. For this you need to use Git Bash or Git client, for example Source Tree.
VCS -> Import into Version Control -> Create Git Repository
master
'D:\projects\TestProject'
git remote add origin http//IP/path/to/repository
git push origin master
Synchronize 'TestProject'
Git -> Repository -> Branches -> origin/master -> Checkout as new local branch
File -> Open
and navigate to your project folder e.g cd 'D:\projects\TestProject'
Repository -> Add Remote
, you should see Repository Settings window Synchronize 'TestProject'
Git -> Repository -> Branches -> origin/master -> Checkout as new local branch
Now you should be able to do pull/push using IntelliJ IDEA plugin.
It is possible in Intellij IDEA.
You should add a remote repository for your local repository in git bash by below command.
git remote add origin YOUR_REMOTE_REPOSITORY_ADDRESS. for example git remote add origin https://gitlab.com/my_account/my_repository.git
In Intellij IDEA when you want to commit any change to repository use ctrl + k
and it will show you a window like below image. In this window you can choose commit and push
so it will commits and push change to local and remote repository.
Also if you want to only push to remote repository use ctrl + shift + k
to pushing changes.
I hope this answer helps you.
I had the same problem and I believe this is still the case with IDEA 12 unless I'm mistaken:
An alternative to using the command line would be SourceTree (available for Mac & Win) to manage remotes or manage Git/Hg repositories completely. It is a free GUI client from Atlassian (no affiliation disclosure).
You can download it here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With