Dmy*_*lyk 28 git intellij-idea
我有Intellij IDEA 12.0.1我正在使用内置的Git插件.我能够创建本地存储库.现在我想将我的源代码上传到远程存储库.我可以使用Intellij IDEA插件吗?
谢谢.
Dmy*_*lyk 54
您无法使用IntelliJ IDEA插件将本地Git存储库上载到远程.为此,您需要使用Git Bash或Git客户端,例如Source Tree.
VCS -> Import into Version Control -> Create Git Repositorymaster'D:\projects\TestProject'git remote add origin http//IP/path/to/repositorygit push origin masterSynchronize 'TestProject'Git -> Repository -> Branches -> origin/master -> Checkout as new local branchFile -> Open导航到项目文件夹,例如cd'D:\projects\TestProject'Repository -> Add Remote,您应该看到" 存储库设置"窗口


Synchronize 'TestProject'Git -> Repository -> Branches -> origin/master -> Checkout as new local branch现在你应该能够使用IntelliJ IDEA插件进行拉/推.
在Intellij IDEA中有可能.
您应该通过下面的命令在git bash中为本地存储库添加一个远程存储库.
git remote add origin YOUR_REMOTE_REPOSITORY_ADDRESS.
for example
git remote add origin https://gitlab.com/my_account/my_repository.git
Run Code Online (Sandbox Code Playgroud)
在Intellij IDEA中,当您想要对存储库使用提交任何更改时,ctrl + k它将显示如下图像的窗口.在此窗口中,您可以选择commit and push提交并将更改推送到本地和远程存储库.
此外,如果您只想推送到远程存储库用于ctrl + shift + k推送更改.
我希望这个答案可以帮到你.
| 归档时间: |
|
| 查看次数: |
37991 次 |
| 最近记录: |