栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

git上传代码

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

git上传代码

分为两种方式上传:http和ssh
我先采用的ssh,遇到问题之后,改为用https方式

参考:https://blog.csdn.net/zeng092210/article/details/95622318
1.先在github上新建一个project
2.在pc上生成ssh key复制到github上。具体生成过程参考:
https://www.cnblogs.com/sxdcgaq8080/p/10570150.html

在git push -u origin master的时候报错:

ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights

后改为https方式,参考:
https://blog.csdn.net/qq_41055045/article/details/99941324
输入密码时要输出token,参考:https://blog.csdn.net/weixin_41010198/article/details/119698015

:~/testgit$ git clone https://github.com/zlu1994/yolov5_pytorch.git
Cloning into 'yolov5_pytorch'...
Username for 'https://github.com': zlu1994
Password for 'https://zlu1994@github.com': 
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for 'https://github.com/zlu1994/yolov5_pytorch.git/'


:~/testgit$ git clone https://github.com/zlu1994/yolov5_pytorch.git
Cloning into 'yolov5_pytorch'...
Username for 'https://github.com': zlu1944
Password for 'https://zlu1944@github.com': 
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/339770.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号