先去下载安装git.exe:https://git-scm.com/download/win 且配置环境变量:E:\Git\cmd
1、然后注册一个Github账号
2、然后在Github里创建一个Repositories



4、最后在你的项目里右键选择Git Bash Here打开
输入下面代码即可:
git init
git commit -m "first commit"
git remote add origin 这里放上你github项目地址如:https://github.com/MyTestDemo.git
git push -u origin master

然后就可以在你gthub上面看到你的项目代码了