基本步骤
- 在远程(github、码云等)建立一个仓库
- 在本地clone这个仓库
git clone your_path
- 将需要上传的文件放到这个文件夹里
- 暂存修改
git add .
- 添加注释
git commit -m "你的注释"
- 上传
git push -u origin master
遇到的问题
- 报错
The file will have its original line endings in your working directory
解决方法:
git rm -r --cached . git config core.autocrlf false
重新上传即可
原链接