git常用命令

在跟github的账号和密码已经设置好并且能连接上github的前提下:(如果没有设置好参考另外一篇文章)

首先在github上新建仓库,然后在工程的跟目录下执行

git init             
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:longlong7/aaaaaa.git
git push -u origin master

可以将项目推到github上

原文地址:https://www.cnblogs.com/Baronboy/p/6086608.html