Git上传本地项目

如何将本地项目push到GitHub上?

GitHub新建一个 repostory 找到URL 例如:https://github.com/hoo334/test.git

找到项目文件夹 右键git bash here

git init

git add . 

git commit -m "提交信息"

git push -u origin master

提交更新到Github

git status (可选 查看更改文件)

git add 你想要提交更改的文件 或者git add .

git commit -m "提交信息"

git push  origin master

 

如果操作失误就直接删掉目录内的.git整个文件夹 重新git init。

猜你喜欢

转载自www.cnblogs.com/hoo334/p/12164343.html