Upload local Git repository to remote using IntelliJ IDEA plugin

To create local Git repository with IntelliJ IDEA plugin

  1. In IntelliJ IDEA menu VCS -> Import into Version Control -> Create Git Repository
  2. In pop up window select your project and click ok.
  3. Commit all necessary files to you local branch master

To upload local repository to remote using Git Bash

  1. Open Git Bash and navigate to your project folder e.g cd 'D:\projects\TestProject'
  2. In Git Bash git remote add origin http//IP/path/to/repository
  3. In Git Bash git push origin master
  4. In IntelliJ IDEA right-click on project select Synchronize 'TestProject'
  5. 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

  1. In Source Tree File -> Open and navigate to your project folder e.g cd 'D:\projects\TestProject'
  2. In Source Tree Repository -> Add Remote, you should see Repository Settings window enter image description here
  3. Click Add button, and fill Remote details enter image description here
  4. Finally click Ok button Now you should be able to do pull/push using IntelliJ IDEA plugin.
  5. In IntelliJ IDEA right-click on project select Synchronize 'TestProject'
  6. In IntelliJ IDEA right-click on project select Git -> Repository -> Branches -> origin/master -> Checkout as new local branch
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值