IDEA 用git 本地分支commit 远程分支Push 成功后回滚Push无法提交神操作

把相应的文件暂存后,使用git命令先安排 一下

$ git stash
Saved working directory and index state WIP on yx_shop_dev: 664c41c26 Merge "京东退款接口" into yx_shop_prod

ling1@С▒▒Ů▒ķ▒▒▒ MINGW64 /w/ideaWorkPace/dss-wshop (yx_shop_dev)
$ git pull --rebase
Successfully rebased and updated refs/heads/yx_shop_dev.

ling1@С▒▒Ů▒ķ▒▒▒ MINGW64 /w/ideaWorkPace/dss-wshop (yx_shop_dev)
$ git stash pop

 

然后用签名方式提交,写上备注哈

搞完再命令安排一下

$ git pull
Already up to date.

ling1@С▒▒Ů▒ķ▒▒▒ MINGW64 /w/ideaWorkPace/dss-wshop (yx_shop_dev)
$ git push origin yx_shop_dev:refs/for/yx_shop_dev

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值