网上有很多帖子非常受用就不赘述了。

大家可以参考这篇:http://blog.csdn.net/ashinli/article/details/72905652

------------------------------------------------------------------------------------------------

题主只强调一下自己在看这篇文章时实际遇到的困难以及解决方案,所以最好两篇文章结合起来看,互为补充。

可能出现的问题1.定位git.exe的位置。

如图为原博主的路径。但是有的人的git路径不在这里。

而是在C:\Users\yourName\AppData\Local\GitHub\PortableGit_f02737a78695063deace08e96d5042710d3e32db\mingw32\bin\git.exe

输入后test一下,显示成功。

Pycharm代码上传Github的注意事项


可能出现的问题2.ssh秘钥链接

仅仅定位了Git 的位置还不够,题主试着post的时候报错:

Failed to create GitHub Repository
Can't create repository: PyCharm

Unprocessable Entity - Repository creation failed.
[Repository; description]custom: description control characters are not allowed

这个时候需要配置ssh** 。

在git bash 里输入ssh-****** -C ‘自己邮箱@aliyun.com’ -t rsa 
会出现Your public key has been saved in /c/Users/sinitek/.ssh/id_rsa.pub.

用txt打开,复制内容(**),去自己github,在settings-ssh and GPG keys-New ssh Keys,粘贴刚才复制的内容,取名随便,保存。

这样的话ssh**就配置好了

重新post就成功了~


相关文章:

  • 2022-12-23
  • 2021-10-30
  • 2021-05-31
  • 2022-01-19
  • 2022-12-23
  • 2021-11-24
  • 2021-04-16
  • 2021-07-27
猜你喜欢
  • 2021-04-10
  • 2022-01-13
  • 2021-04-05
  • 2021-09-21
  • 2021-12-08
  • 2021-06-01
相关资源
相似解决方案