使用git上传github代码

第一次使用git上传github的代码,记录一下使用步骤。

1.找到自己代码根目录,右键点击Git Bash here

2,git init

3.git status

4.git cheakout -b **                                               //**为自己的命名分支

5.git add .

6.git commit -m "记录的代码版本笔记"

7.git remote add origin https://github.com/......         // 输入要增加分支的github项目

8.git fetch origin                                               //先同步远程的项目代码

9.git checkout master                                     //先把master里面的代码合并过来

10. git pull origin master:master

11.git checkout **                                        //切回到自己新建的分支

12.git merge master --allow-unrelaterd-histories                                  //将master中的代码合并过来

13.把出现的conflict都解决

14.git push origin linbin:linbin

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值