首页
沸点
课程
APP
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
登录
注册
追梦玩家
前端 @找工作ing
·
3年前
关注
屏蔽作者: 追梦玩家
举报
git回滚到指定版本强制提交
场景:跟后端一开始沟通,一个新字段传原来的单价信息,已经提交到远程仓库,后面后端说他那边可以获取到,不用了
,但是我这边已经提交远程仓库,需要回滚到上一次提交。
1. git log 查看历史提交版本
2. git reset --hard <commit_id> 回滚到指定版本,<commit_id> 是对应的 commit 对应的版本
3. git push -f origin feature 推送到远程分支,feature 是远程分支名
展开
技术交流圈
赞过
分享
4
1
相关推荐
我舅舅是做c语言嵌入式开发的,我在学python,他叫我可以学学c#,他说这个语言啥都能干,我也想学,所以问问各位大佬,入门该咋学啊,是去刷教程还是啥啊?
3 赞 ·
6 评论
Learning English is difficult. Even though I spend a lot of time listening and memorizing words, I still can’t speak. I know many words, but when I want to speak, they all disappear. But I still have to keep learning. Maybe one day, I’ll be able to speak English naturally.
3 赞 ·
13 评论
ChatTTS 既然不能长文本转语音。速度又慢,为什么不直接丢弃呢
4 赞 ·
0 评论