简体   繁体   English

Intellij中的版本控制下没有Git选项

[英]Git option not available under Version Control in Intellij

I have installed Git on my local machine. 我在我的本地机器上安装了Git。 I am using Git as a DVCS tool for bitbucket. 我使用Git作为bitbucket的DVCS工具。 I have the .git folder inside my project directory as I had cloned the project. 我在项目目录中有.git文件夹,因为我克隆了项目。 I want to integrate Git into IntelliJ Idea but however, I am not able to see this option under the Version Control Integration as below. 我想将Git集成到IntelliJ Idea中,但是,我无法在版本控制集成下看到此选项,如下所示。

GCS选项在VCS下不可用

Go to File -> Settings or (Ctrl + Atl + S) Then select Plugins 转到文件 - >设置或(Ctrl + Atl + S)然后选择插件

Ensure you have the Git Integration plugin enabled for Intellij as seen here (disabled in picture). 确保为Intellij启用了Git Integration插件,如此处所示(图中已禁用)。 Install if not already. 如果尚未安装。

在此输入图像描述

Go to Settings then click on Version Control . 转到“设置”,然后单击“ 版本控制” add git in VCS column from + button. 从+按钮在VCS列中添加git。

在此输入图像描述

incase it was working previously and stop working, then reimport your project: 如果它以前工作并停止工作,然后重新导入您的项目:

  • open intellij 打开intellij
  • on right corner there is setting symbol 在右上角有设置符号
  • click on it 点击它
  • select option rebase 选择选项rebase
  • make sure you have open your source tree with correct login credential 确保您已使用正确的登录凭据打开源树

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM