1.注册
2.登录
3.github配置
1》生成公钥和私钥
2》在github上面,点击右上角自己的头像
3》添加公钥
到这里github已经配置完成了。
4.从github上clone代码
1》在你的本地建一个文件夹,cd “文件夹地址”
2》git clone
5.向github上传代码
cd “上传文件所在的文件夹名称”
git init
git add .
git commit -m “对本次提交的描述”
git remote origin github上所建项目地址
git push -u origin master
在上传代码时,遇到问题一:
解决办法:
git config –global username “your name”
git config –global useremail “your email”
问题二:
6.如果您在公司gitlab也需要公钥私钥,其实他可以和github共用一个秘钥就行。
学习github超详细资料
最新推荐文章于 2022-09-26 09:39:06 发布