android - 在Android Studio的Checkout分支期间拒绝了短读权限

标签 android git android-studio bitbucket

我使用bitbucket进行版本控制,并对此进行操作,我使用Android studio进行Push,pull和fetch代码。
但是,当我去Checkout分支时出现错误:

short Read permission denied
Your local changes to the following files would be overwritten by checkout:


在出现此错误之前,我已经在.gitIgnore中添加了一些文件

.gradle
/local.properties
.idea
/workspace.xml
.DS_Store
/build
/captures
*.iml


即使在此之后,当我尝试添加未跟踪的文件时,


命令git add .gradle / 2.4 / taskArtifacts / cache.properties.lock


但是这个节目

error: short read Permission denied
error: xyz/.gradle/2.4/taskArtifacts/cache.properties.lock: failed to insert into database
error: unable to index file xyz/.gradle/2.4/taskArtifacts/cache.properties.lock
fatal: updating files failed


那么问题是什么?我该如何解决?

最佳答案

不要检查这个,使源目录可写

关于android - 在Android Studio的Checkout分支期间拒绝了短读权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32242434/

相关文章:

git - 在远程运行 git 命令?

git - 无法使用应用程序密码通过 Visual Studio Code 登录到 Bitbucket Repo

android - 通过局域网将 Android Studio 连接到设备

android-studio - buildTypes 不能应用于 groovy.lang.Closure

android - Apprtc 与 PushNotificaiton

android - 解析数据时出错 org.json.JSONException : Unterminated array at character

Android如何登录到exchange server

安卓:自定义AlertDialog

git - 更新 ".git directory is missing"时 Composer 出错

java - 从 Activity 中搜索 fragment ID