android - 为什么带有一些配置文件的 _mac 文件夹会自动从 Android Studio 提交到 git

标签 android git android-studio assembla

我正在使用 mac 中的 android studio 对我的 git 进行一些自动生成的提交,这在带有 Android studio 的 windows 中没有发生(我之前使用过)谁能告诉我为什么会发生这种情况以及如何禁用它? enter image description here

提交以 AI-2.3.2 开始,它是我的 android studio verion 下面是我的全局 gitconfig 文件

    [core]
    excludesfile = /Users/User/.gitignore_global
[difftool "sourcetree"]
    cmd = opendiff \"$LOCAL\" \"$REMOTE\"
    path = 
[mergetool "sourcetree"]
    cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
    trustExitCode = true
[user]
    name = Test
    email = test@gmail.com
[commit]
    template = /Users/User/.stCommitMsg

最佳答案

修复:打开首选项 → 工具 → 设置存储库 → 删除。我还禁用了自动同步。不知道如果我删除所有内容它会保存在哪里,但我将其关闭以更加安全..

我刚遇到这个。原来这个功能叫做“Settings Repository”,它的目的是自动保存 IDE 设置。我想我可能不小心同意了 IDEA 的一些 pop 窗口,它看起来像是将文件添加到 git 存储库,所以这开始工作了。

关于android - 为什么带有一些配置文件的 _mac 文件夹会自动从 Android Studio 提交到 git,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44105191/

相关文章:

git - 搜索特定的提交

android - 如何为不同的屏幕尺寸设置 libgdx 游戏?

android - 没有谷歌播放服务,应用程序将无法运行,而这些服务不是由您的设备提供的

android - 解决依赖项配置 'android-manifest-metadata'后无法创建变体 ':app:myappDebugApiElements'

android - Flutter,如何刷新 Navigator.pop 上的最后一个页面状态

android - google play - 开发者控制台统计信息多久更新一次

xcode - 如果我的 git 工作副本脏了,我该如何停止 Xcode 存档构建?

android - [SDK 补丁应用程序 V4] 许可证的 ionic 错误

java - 在操作栏中导航夏洛克

git - merge 2个补丁文件