To create local Git repository with IntelliJ IDEA plugin
- In IntelliJ IDEA menu
VCS -> Import into Version Control -> Create Git Repository
- In pop up window select your project and click ok.
- Commit all necessary files to you local branch
master
To upload local repository to remote using Git Bash
- Open Git Bash and navigate to your project folder e.g cd
'D:\projects\TestProject'
- In Git Bash
git remote add origin http//IP/path/to/repository
- In Git Bash
git push origin master
- In IntelliJ IDEA right-click on project select
Synchronize 'TestProject'
- In IntelliJ IDEA right-click on project select
Git -> Repository -> Branches -> origin/master -> Checkout as new local branch
To upload local repository to remote using Source Tree
- In Source Tree
File -> Open
and navigate to your project folder e.g cd'D:\projects\TestProject'
- In Source Tree
Repository -> Add Remote
, you should see Repository Settings window - Click Add button, and fill Remote details
- Finally click Ok button Now you should be able to do pull/push using IntelliJ IDEA plugin.
- In IntelliJ IDEA right-click on project select
Synchronize 'TestProject'
- In IntelliJ IDEA right-click on project select
Git -> Repository -> Branches -> origin/master -> Checkout as new local branch