无法从 Android Studio 4.0 Canary 拉/推 git

Ste*_*vxn 22 git android

每次我尝试从位桶中拉出一个 repo 时,我都会收到错误

 Failed to start Git process User Authentication Token not found
Run Code Online (Sandbox Code Playgroud)

我尝试重置 Windows 凭据,卸载并重新安装 git 和 Android Studio,因为我认为 Android Studio 4.0 和我的使用 Windows 10 的电脑存在兼容性问题。

有任何想法吗?

Evg*_*nko 16

以下帮助了我:

  1. 从之前版本的目录C:\Users\(Your user)\.AndroidStudio3.(version)\config(我检查了3.5和3.6版本)复制user.token文件。
  2. 将其粘贴到 C:\Users\(Your user)\.AndroidStudioPreview4.0\config
  3. 启动任何需要授权(推/拉)的 git 操作,在出现的窗口中,输入您的授权数据。


art*_*spb 6

这是Google 问题的解决方法。

  1. 关闭 IDE。
  2. 删除Android Studio 4.0 的设置或将它们复制到其他地方。
  3. 安装3.6 RC 1
  4. 运行它并在 IDE 中执行任何 Git 操作。
  5. 关闭 3.6 并再次打开 4.0 导入先前版本的设置。


小智 -5

如果您已经创建了双因素身份验证,则无法像这样登录,因此请尝试以下操作:

git remote -v 
git remote remove origin 
git remote add origin git@github.com:user/repo.git  
Run Code Online (Sandbox Code Playgroud)

访问此处获取令牌:https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line