很详细的idea配置git github操作 https://www.cnblogs.com/jinjiyese153/p/6796668.html

遇到的坑及解决办法。

1.指定需要操作的github仓库地址

git->repository->Remotes… 设置即可
idea上传、下载代码到github(实用篇)

2.push代码报错 No such device or address failed to execute prompt script (exit code 1) could not read Username for ‘https://github.com’: No error

idea上传、下载代码到github(实用篇)
解决办法:

找到对应工程的.git/config文件,修改 config文件,如下图红色地方所示,xxx为你github的用户名(不是邮箱,是用户名),yyy为github的密码

3.配置完后,想将本地代码push到github,第一次提交会出现冲突,

直接使用强制提交 git push origin master --force

相关文章:

  • 2022-01-04
  • 2021-10-22
  • 2021-08-31
  • 2021-11-23
  • 2021-08-24
  • 2021-08-07
  • 2022-12-23
  • 2021-06-13
猜你喜欢
  • 2021-04-06
  • 2021-07-07
  • 2021-11-09
  • 2021-11-19
  • 2021-11-29
  • 2021-06-06
  • 2021-11-18
相关资源
相似解决方案