1、在本地安装完成github,并且在网页端创建好仓库切记住仓库地址;
2、选在要上传的项目,单击右键git bash here
3、在出来的命令框中输入 git config --global user.name "YOUR USERNAME"
4、git config --global user.email YOUR EMAIL
5、git init
6、git add .
7、git commit - m "initial commit"
8、git remote add origin https://github.com/YOURREPOSITORY.git
9、git push origin master
10、输入用户名和密码即可