本地工程提交github

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 !
原文地址:https://www.cnblogs.com/ooon/p/4992123.html