将本地项目推送到github

1.cd 到项目文件下

2.git init 初始化本地仓库

3.git add -A 加入暂存区

4.git commit -M "firstCommit" 将项目文件加到仓库中

5.github 上create new repository

6.git remote add origin https://github.com/Liangjianghao/xxx.git

7.git push -u origin master

你可能感兴趣的:(将本地项目推送到github)