![本地工程提交github 本地工程提交github](https://image.shishitao.com:8440/aHR0cHM6Ly9ia3FzaW1nLmlrYWZhbi5jb20vdXBsb2FkL2NoYXRncHQtcy5wbmc%2FIQ%3D%3D.png?!?w=700&webp=1)
1. 首先在github上创建一个新的Repository
2. 在本地windows机器上装上git
3. 建立一个文件夹,以后就用这个文件夹作为与Repository对应的库文件夹
4. 输入一下命令,建立文件夹与Repository的连接关系
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/lltppong-it/TeweWater.git
git push -u origin master
5.把要提交的工程复制该文件夹下,输入以下命令提交即可
git add .
git commit -m "new project"
git push origin master
ok !