下载
![](https://img.haomeiwen.com/i1783388/dd87bb6a1184cec9.png)
![](https://img.haomeiwen.com/i1783388/a78c7ecd3de37cf8.png)
下载完成后会多出 C:\Users\username\AppData\Local\GitHub 文件夹
1 、图形界面上传
![](https://img.haomeiwen.com/i1783388/26566e81503f16aa.png)
![](https://img.haomeiwen.com/i1783388/9b03fb4747fcf4ae.png)
![](https://img.haomeiwen.com/i1783388/3903de9019a678be.png)
![](https://img.haomeiwen.com/i1783388/e0334cf3983a7ff5.png)
![](https://img.haomeiwen.com/i1783388/79d1873a322def04.png)
2、命令行形式上传
命令行可以是git shell 或者git bash
git config --global user.name "user_nam" #配置用户名
git config --global user.email "email" #配置邮箱
cd D:\study\codeforcesproblem\problem #进入资源目录
git init #生成.git 文件
touch test.txt #命令行生成测试文本
git status #查看文件状态
git add test.txt #跟踪文件并暂存
git commit -m 'frist commit' #设置提交名称
git remote add origin https://github.com/... #添加远程仓库
git push -u origin master #提交到远程仓库
网友评论