上传本地代码到GitHub
2017-08-11 15:50
120 查看
1. 在github上穿件一个远程仓库
2. 开始建立本地库,按照以下的步骤一步一步做下去
1) git init(在本机上想要创建一个新的git仓库)
2) git add . (表示添加全部)
3) git remote add origin xxxxxxxxxxxxxxxxxxx(你远程仓库的地址) 关联远程仓库
4) git commit -m "my first commit"
5) git pull --rebase origin master 更新远程更新到本地(这一步一定要在下一步之前,否则会报错,本地push到远程前一定要
先讲远程的更新pull到本地)
推送本地更新到远程:
6) git push origin master 将本地repo和远程的origin的repo合并
2. 开始建立本地库,按照以下的步骤一步一步做下去
1) git init(在本机上想要创建一个新的git仓库)
2) git add . (表示添加全部)
3) git remote add origin xxxxxxxxxxxxxxxxxxx(你远程仓库的地址) 关联远程仓库
4) git commit -m "my first commit"
5) git pull --rebase origin master 更新远程更新到本地(这一步一定要在下一步之前,否则会报错,本地push到远程前一定要
先讲远程的更新pull到本地)
推送本地更新到远程:
6) git push origin master 将本地repo和远程的origin的repo合并
相关文章推荐
- 教你上传本地代码到github
- 在Linux中如何将本地代码上传至Github
- 上传本地代码到GitHub
- 教你上传本地代码到github
- 将本地代码上传到Github(超详细)
- github本地如何上传代码
- Github建立本地仓库上传代码
- 本地代码上传到github
- 上传本地代码到gitHub过程详解
- 教你上传本地代码到github
- 将本地项目代码上传到github步骤
- 将本地项目或代码上传到别人GitHub(码云)的远程分支上
- 教你上传本地代码到github
- git通过命令本地代码上传github
- 如何通过命令将本地项目代码上传到github
- 本地代码上传、托管到github
- 教你上传本地代码到github
- GitHub 上传本地代码到仓库
- 新年第一篇!分享下怎么把本地代码上传到github上