git安装及上传项目

1:下载地址

https://git-for-windows.github.io

2:不想另外设置就一路默认下一步到安装就是了

3:安装完选择上传的项目右键git bash here

4:设置user和email 如下:

$ git config --global user.name "user"

$ git config --global user.email "email"

5:添加完选择项目右键 git gui here 打开gui后选择remote->add添加已经在github上创建respositories的git路径

git安装及上传项目

6:git安装及上传项目这里会刷新出你要提交的项目,commit一下,接着push,push可能会提示要ssh user和password 填上你账号密码就是了