(1)先在码云或者github上建立项目(建立远程仓库)
(2)在终端获取远程仓库
$git clone +仓库https链接 会出现 .md文件
(3)在.md文件当前路径下新建文件夹创建你的项目代码
(4)$git add + (你要把哪些文件上传到码云/github)
(5)$git commit -m "描述你的项目"
(6)$git push
(7)完成
常见问题:
(1)解决git clone 报错 fatal: unable to access '......': SSL connect error
方法一:升级nss版本 yum update nss -y
方法二:将https改为git git clone git://******@github.com/******/******.git
方法三:如果以上两种解决方法都无法解决你的问题,那么请再执行: yum update -y nss curl libcurl
(2)No refs in common and none specified; doing nothing
方法:git push origin master 在第一次推送之后,可以使用更简单的 git push