把项目放在github

发布时间 2023-03-22 21:13:03作者: LuMinarY-

一.右上角加号新建一个new repository
填入时license下拉框选择Apache为需要验证,MIT为公开随意拉取
二.git clone拉取代码
报错fatal: unable to access 'https://github.com/1401330051/supermall.git/': Failed to connect to github.com port 443 after 21061 ms: Timed out
解决方案:把http换成git
报错fatal: unable to connect to github.com:
github.com[0: 20.205.243.166]: errno=Unknown error
解决方案:打开cmd输入git config --global url."https://github.com".insteadOf git://github.com
三.在文件夹里复制粘除了git.文件外所有文件
四.提交代码