1、用svn下载GitHub上单个文件夹
参考链接:https://blog.csdn.net/sunqiande88/article/details/80282913
网上还有使用downgit下载的方法,但是下载到最后进度条总是不停地转圈圈,不知道怎么回事。
2、下载git并学习git的使用
参考链接:https://blog.csdn.net/youzhouliu/article/details/78952453
3、注册GitHub账号,学习使用
参考链接:https://www.zhihu.com/question/21669554
4、遇到的问题记录
(1)输入$ git remote add origin git@github.com:(帐号名)/(项目名).git
报错:fatal: remote origin already exists.
解决办法如下:
1、输入$ git remote rm origin
2、再输入$ git remote add origin git@github.com:.git
(2)git push报错fatal: does not appear to a git repository Could not read from remote repository
解决掉问题(1)后问题(2)就没有了
(3)git push报错error: failed to push some refs to 'git@github.com:
原因:
GitHub远程仓库中的README.md文件不在本地仓库中。
解决方案:
$ git pull --rebase origin master
$ git push -u origin master
参考链接:
https://blog.csdn.net/python_neophyte/article/details/83381936
https://blog.csdn.net/dengjianqiang2011/article/details/9260435
https://blog.csdn.net/qq_37281252/article/details/79044798
5、更新GitHub上的代码
https://blog.csdn.net/qq_23101033/article/details/77310930
学习笔记(关于git)
最新推荐文章于 2019-09-15 19:10:42 发布