Android Studio中的Git消失了吗? [英] Git in Android Studio disappeared?
问题描述
当我右键单击Android Studio项目(在Android视图中)时,我曾经有一个"Git" 子菜单.在那里我可以拉,推等等.
When I right-clicked in my Android Studio project (in the Android view), I used to have a "Git" submenu. There I could pull, push, etc.
但是,"Git"菜单现在以某种方式消失了.结果,我既不能推也不能拉.我在哪里可以再次启用它?
However, that 'Git' menu is now gone, somehow. As a result, I can neither push nor pull. Where can I enable that again?
推荐答案
尝试这种方式,
- 在Android Studio中,通过VCS启用项目的版本控制 –>启用版本控制集成
- 打开命令行/终端,然后通过以下方式将项目添加到Git存储库: git remote add
- 通过VCS添加文件–> Git –>通过VCS添加和提交/推送–>提交 变化
- In Android Studio enable the version control for the project by, VCS –> Enable Version Control Integration
- Open command line/terminal and add the project to Git repository by, git remote add
- Add files by, VCS –> Git –> Add and commit/push by, VCS –> Commit Changes
结帐 Android Studio Git教程链接以获取更多详细信息.
Checkout Android Studio Git Tutorial link for more detail.
以及检查此堆栈说明.
在Android Studio中,转到文件" –>设置" –>版本控制" –> .然后单击测试",以确保在以下位置正确配置了Git Android Studio.
In Android Studio, go to ‘File’ –> ‘Settings’ –> ‘Version Control’ –> ‘Git’. Then click ‘Test’ to ensure that Git is configured properly in Android Studio.
在使用Git或任何其他现有版本控制之前 项目中,应启用版本控制集成".在Android中 Studio,请转到"VCS"->启用版本控制集成".这 步骤适用于Android Studio中已经存在的项目,而不是 已与任何版本控制集成.
Prior to using Git or any other version control with an existing project, ‘version control integration’ should be enabled. In Android Studio, got to ‘VCS’ –> ‘Enable Version Control Integration’. This step is for an already existing project in Android Studio, that is not is integrated with any version control.
这篇关于Android Studio中的Git消失了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!