使用git命令将本地项目提交到github

进入项目根目录:

1. git init

2. git add .

3. git commit -m 'first commit'

4. 在github上面创建一个仓库,创建成功之后,就会生成该仓库的地址

git remote add origin https://github.com/2212881810/vuex-demo.git

5. 提交远程仓库的master分支

git push -u origin master


原文地址:https://www.cnblogs.com/z-qinfeng/p/12492944.html