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远程添加
- 添加文件,VCS –> Git –> 添加和提交/推送,VCS –> 提交变化
查看 Android Studio Git 教程链接了解更多详情.
Checkout Android Studio Git Tutorial link for more detail.
以及查看此堆栈说明.
在Android Studio中,进入‘文件’ –> ‘设置’ –> ‘版本控制’ –>‘Git’. 然后点击‘Test’以确保 Git 配置正确安卓工作室.
In Android Studio, go to ‘File’ –> ‘Settings’ –> ‘Version Control’ –> ‘Git’. Then click ‘Test’ to ensure that Git is configured properly in Android Studio.
在使用 Git 或任何其他版本控制与现有项目,应启用版本控制集成".在安卓中Studio,转到VCS"->启用版本控制集成".这个step 是针对 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屋!