你如何在android studio中关闭版本控制? [英] How do you turn off version control in android studio?

查看:30
本文介绍了你如何在android studio中关闭版本控制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 android studio 上设置了我的 Github,一切正常,但现在的问题是,我似乎无法关闭或退出版本控制以再次正常使用 IDE.

I set up my Github with android studio, everything worked fine, the problem now is though, that I can't seem to turn off, or get out of version control to use the IDE normally again.

这意味着不会显示错误,因此很难调试.

This means that errors aren't shown, and it is really hard to debug because of this.

那么如何在 Android Studio 中关闭版本控制 (VCS)?

So how do I turn off version control (VCS) in Android Studio?

推荐答案

要在 Mac 上的 Android Studio 中禁用 VCS,请执行以下操作:

To disable VCS in Android Studio on a Mac do the following:

Android Studio >偏好...

在 Preferences 窗口中,选择 Version Control 并在 Directory 下选择 VCS 下拉菜单为

In the Preferences window, select Version Control and under Directory choose VCS dropdown to be <none>

不要忘记点击应用";在底部的常规首选项按钮中.

Don't forget to click "Apply" in the general Preferences buttons at the bottom.

2021 年...

现在的 Android Studio 似乎不会自动启动并为新版本打开版本控制项目.

It would seem that Android Studio nowadays does not automatically start with version control turned on for a new project.

默认似乎是关闭";在一个新项目的开始.

The default seems to be "off" at the beginning of a new project.

(它确实方便地为您制作了一个.gitignore"文件,但它默认尝试使用版本控制.)

(It does conveniently make a ".gitignore" file for you but it does not default to trying to use version control.)

但是,如果您稍后手动开始在相关文件夹中使用 git,Studio 确实会在 Studio 内打开 vcs,即完全如上图所示.在这种情况下,您需要在 Studio 中将其关闭,完全如上所示.

However, if later you do manually yourself start using git in the folder in question, Studio does turn on vcs inside Studio, i.e. exactly as seen in the image above. In that case you'll have turn it off inside Studio, exactly as shown above.

这篇关于你如何在android studio中关闭版本控制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆