当我尝试在 Windows 上使用 Git Bash 拉取代码时,出现了以下问题:
fatal: could not read Username for 'https://github.com': No such file or directory
我已经尝试实施这里提供的被接受的解决方案:
然而问题仍然存在。
在添加/删除源之后,我仍然遇到相同的错误。
能否就此问题提供建议?
谢谢!
当我尝试在 Windows 上使用 Git Bash 拉取代码时,出现了以下问题:
fatal: could not read Username for 'https://github.com': No such file or directory
我已经尝试实施这里提供的被接受的解决方案:
然而问题仍然存在。
在添加/删除源之后,我仍然遇到相同的错误。
能否就此问题提供建议?
谢谢!
从Android Studio终端执行 git pull
例如:test@test:~/StudioProjects/dummy-project-android$ git pull
添加用户名
例如:test@test:~/StudioProjects/dummy-project-android$ "username"
添加用户密码
Password for 'https://dummy-project-android@git.com':"password"
之后,我们可以执行其余的操作。
https://github.com/username/<project_name>.git
使用这个格式
git@github.username/<project_name>.git
您可以在 SSH
选项下获取正确的 URL
前往您的 Github Repo -> 点击 Code -> 选择 SSH -> 复制您的 Repo URL
希望这有所帮助。
git config --global user.name "Your Name Here"
- Raul Andres