本地代码上传到Github

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

本地代码上传到Github

本地代码上传到Github

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

本地代码上传到Github

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

猜你喜欢

转载自blog.51cto.com/1206995290qq/2335806