如何恢复合并?(How to revert merge?)
我分叉了一个回购并进行了一些更改然后将它推入我的主分支。 然后我从我分叉的repo中获取了更改并将其合并到我的master中。 我遇到了很多合并冲突。 我把它们修复了但是代码中的某个地方我错过了一个改变。 我没有推动这种改变,也没有提交它。 如何恢复合并? 我分配的repo的提交有旧的提交,我的repo有我的新提交。
I had forked a repo and made some changes then pushed it into my master branch. Then I fetched the changes from the repo I forked and merged it into my master. I got a lot of merge conflicts. I fixed them all but somewhere in the code I missed an imp change. I have not pushed that change nor have I commited it. How can I revert the merge? The commits from the repo that I had forked had old commits and my repo have my new commits.
原文:https://stackoverflow.com/questions/42569296
最满意答案
您应该看一下CustomizableUI.jsm :您可以使用一个函数来设置工具栏可见性,了解其ID。
要导入它jut do:
var {Cu} = require("chrome"); const { CustomizableUI } = Cu.import('resource:///modules/CustomizableUI.jsm', {});
You should take a look at CustomizableUI.jsm: there is a function you can use to set toolbar visibility knowing its id.
To import it jut do:
var {Cu} = require("chrome"); const { CustomizableUI } = Cu.import('resource:///modules/CustomizableUI.jsm', {});
相关问答
更多-
我知道您想要切换mapSearch.hidden 。 这是一个解决方案 mapSearch.hidden = !mapSearch.hidden; 要么 mapSearch.hidden = (mapSearch.hidden) ? NO : YES; I understand you would like to toggle the mapSearch.hidden. Here is a solution mapSearch.hidden = !mapSearch.hidden; or mapSea ...
-
您可以使用库工具栏按钮完成 ,这是我的toolbarbutton.js的分支。 使用库 您可以使用与原始toolbarbutton.js相同的方式使用此库,但它也有更多选项和功能。 在你的main.js文件中: button = createButton(options); // On install moves button into the toolbar if (options.loadReason == "install") { button.moveTo({ toolba ...
-
Firefox Addon SDK - 如何使新标签页面只运行一次(Firefox Addon SDK - how to make page in new tabs run only once)[2023-04-06]
问题是您正在收听任何和所有选项卡的ready事件,而不是您刚刚打开的选项卡。 一种选择是做这样的事情: function handleClick(state) { tabs.open({ url: "about:blank", onOpen: function onOpen(tab) { tab.attach({ contentScriptFile: self.data.url("home.js"), ... -
你不能。 大多数现代浏览器都禁止JavaScript将地址栏隐藏在新窗口中作为反钓鱼措施。 You can't. Most modern browsers forbid JavaScript from hiding the address bar in new windows as an anti-phishing measure.
-
单击下一个项目时如何显示工具栏(并隐藏当前)?(How to show toolbar ( and hide current ) when click on the next item?)[2022-10-06]
你可以试试这个 $(".element").on('mouseup', function(e){ $('[el-button]').click(function(e){ e.preventDefault(); }); if ( !$('.dm-popover').hasClass('in') ) { var toolbar = $('只有在内部放置了一个条形按钮项目时,工具栏才会隐藏。 The toolbar will only hide if you have put a bar button item inside.FF插件工具栏 - 添加的任何内容都位于工具栏的右侧(FF addon toolbar - anything added sits on the right side of the toolbar)[2023-09-16]
您的toolbaritem没有id,这意味着工具栏自定义代码无法保持其位置。 Your toolbaritem doesn't have an id which means that the toolbar customisation code can't persist its position.您应该看一下CustomizableUI.jsm :您可以使用一个函数来设置工具栏可见性,了解其ID。 要导入它jut do: var {Cu} = require("chrome"); const { CustomizableUI } = Cu.import('resource:///modules/CustomizableUI.jsm', {}); You should take a look at CustomizableUI.jsm: there is a function you can use ...Firefox插件SDK错误:无法从内部工具栏中删除(Firefox addon SDK error: Unable to Remove from Inner-Toolbar)[2023-04-04]
由于许多性能和可用性问题,'widget'模块已被弃用,并且自Firefox 40起已从SDK中删除。请使用'sdk / ui / button / action'或'sdk / ui / button /切换'模块 https://developer.mozilla.org/Add-ons/SDK/High-Level_APIs/ui https://developer.mozilla.org/Add-ons/SDK/Low-Level_APIs/ui_button_action https://deve ...隐藏/显示工具栏(Hide/show Toolbar)[2023-01-04]
不幸的是,没有办法让嵌套滚动工作在ListView上。 请改用使用粘性标题RecyclerView。 Unfortunately, there is no way to get nested scrolling working on ListView. Use sticky header RecyclerView instead.相关文章
更多- Hadoop中间结果Merge压缩不全bug
- merge solr index &&&&& very import create new core
- Hadoop 从SecondaryNamenode 恢复NameNode
- 创建与合并分支-git入门教程
- SecondaryNamenode配置与NameNode故障恢复
- Hadoop Namenode HA 合并到主干
- Hadoop出现元数据不能更新且SNN合并失效
- linux平台MYSQL备份与恢复
- 微信 附近的人被屏蔽 恢复指南
- 恢复误删Linux 的/tmp 目录
最新问答
更多- 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
- 如何通过引用返回对象?(How is returning an object by reference possible?)
- 矩阵如何存储在内存中?(How are matrices stored in memory?)
- 每个请求的Java新会话?(Java New Session For Each Request?)
- css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
- 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
- xcode语法颜色编码解释?(xcode syntax color coding explained?)
- 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
- 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
- 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
- 西安哪有PLC可控制编程的培训
- 在Entity Framework中选择基类(Select base class in Entity Framework)
- 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
- 电脑二级VF有什么用
- Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
- 金华英语角.
- 手机软件如何制作
- 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
- 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
- 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
- Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
- 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
- python的访问器方法有哪些
- DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
- 在Ruby中对组合进行排序(Sorting a combination in Ruby)
- 网站开发的流程?
- 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
- 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
- 透明度错误IE11(Transparency bug IE11)
- linux的基本操作命令。。。