国内下载地址:https://npm.taobao.org/mirrors/git-for-windows/
理解git的模型http://www.ruanyifeng.com/blog/2014/06/git_remote.html

1.创建本地仓库:新建空文件夹E:\learn_git,执行初始化命令:git init,文件夹里会多一个.git文件夹。
2.gitee上创建一个远程仓库,成功后是这个样子的,复制右边的地址。

3.关联本地仓库和远程仓库: git remote add origin https://gitee.com/bingyanlengyu/learn_git.git
4.从远程仓库同步下来文件: git pull origin master
5.文件夹里新建Readme.md文件
6.添加本地新建文件到index(参考上面的图片git模型):git add .
7.提交到本地仓库并附件提交信息: git commit -m "添加readme文件"
8.提交到远程仓库: git push origin master
9.使用git status可以查看当前仓库的状态。
网友评论