git - 摆脱无法达到的提交(git - get rid of unreachable commit)
我正在尝试清理我的存储库并删除所有无法访问的内容。
我做到了
git reflog expire --expire=now --all git fsck --full --unreachable git repack -A -d git gc --aggressive --prune=now
但是我仍然有一些从我的理解中无法实现的提交,但不是由git提供的
我有一些承诺,让我们说A
git branch --all --contains A git tag --contains A
没有回报
但
git fsck --full --unreachable
也没有返回,所以它不认为A是无法访问的。
我错过了什么?
I am trying to cleanup my repository and remove everything unreachable.
I did
git reflog expire --expire=now --all git fsck --full --unreachable git repack -A -d git gc --aggressive --prune=now
But I still have some commits that are unreachable from my understanding but not by git's
I have some commit, let's say A
git branch --all --contains A git tag --contains A
return nothing
but
git fsck --full --unreachable
also returns nothing so it does not consider A as an unreachable.
What am I missing?
原文:https://stackoverflow.com/questions/26626661
更新时间:2022-10-30 11:10
最满意答案
It is displayed automatically and no need to do something more.
Please take a look at this twiddle
At bottom right corner there is a trademark. The docs used to say it watermark. I think trademark is a better name ;)
相关问答
更多-
模板绑定到controller ,而不是route 。 然而,你的route应该从model钩子返回model 。 所以你可以做这样的事情: export default Route.extend({ model() { return appModel.topCompanies } }); 但是,那么你的模型在你的控制器和模板上被称为model ,而不是topCompanies 。 要解决这个问题,请将它添加到您的控制器( ember g controller index )中: topC ...
-
您的问题是由于默认情况下隐藏了部分content类的任何元素。 除非您初始化基础,否则它将保持隐藏状态。 解决问题的关键是这样做: $(document).foundation(); 现在确保您引用了Foundation的脚本: foundation.min.js Your issue is due to the fact that by default, any element with content class inside a section is hidden. It will remain h ...
-
是的,你是对的,ArrayController有一个length属性,返回其内容的长度.... ArrayController的content属性应该是一个数组... 样品工作小提琴 http://jsbin.com/ikijoq/1/edit Yeah you are right, the ArrayController has a length property which returns the length of its content....The content property of an A ...
-
它会自动显示,不需要做更多的事情。 请看看这个旋律 在右下角有一个商标。 该文档用来说它的水印。 我认为商标是一个更好的名字;) It is displayed automatically and no need to do something more. Please take a look at this twiddle At bottom right corner there is a trademark. The docs used to say it watermark. I think trad ...
-
在Ember.js中使用EJS(Using EJS with Ember.js)[2024-02-28]
如果您不想使用把手,则可以像使用Backbone视图一样使用Ember视图。 但是,我们做了大量工作,以便在其底层属性更改时自动更新Handlebars模板。 请记住,如果您使用Handlebars以外的模板引擎,自动更新(Ember IMO呼吁的很大一部分)将不会发生。 也就是说,您可以将任何视图的template属性设置为返回字符串的函数,并将其呈现给屏幕。 var view = Ember.View.create({ template: function() { return "Hi there! ... -
如何使用不同的控制器更新Ember.js中的hasMany?(How to update hasMany in Ember.js using different controllers?)[2024-03-30]
确定找到了解决方案,只需将itemController添加到each循环的任务中 {{#each task in this.tasks itemController='task' }}{{#if task.isEditingTask}} {{edit-input class="form-control" value=task.name focus-out="acceptChanges" insert-newline="acceptC ...Ember.js - 为什么我的带有内联模板的视图无法显示?(Ember.js - why is my View with inline template not displaying?)[2022-05-16]
App必须是全局的 - 如果您检查javascript日志,您可以看到把手视图帮助程序找不到名为App.MyView的视图。 这是因为App正在本地声明,因此模板无法访问它。 将App定义更改为: window.App = Ember.Application.create(); 此外,您不需要扩展路由器。 你可以使用地图。 例如 App.Router.map(function(){ this.route('index', {path: '/'}); }); 这是一个有效的JSFiddle: http ...基本上你需要做的就是应用overflow: auto; 到你的container类: CSS .container { overflow: auto; } 但是,如果您希望将css应用于您的names模板对应的div那么您应该为您的names模板添加一个view并定义相应的classNameBindings : CSS .auto-scroll { overflow: auto; } 使用Javascript App.NamesView = Ember.View.extend({ class ...正如我上面评论的那样,你可以在页面渲染,加载数据等时显示一个微调器。例如,下面是一个Mixin,它显示一个微调器直到一个View渲染: App.ShowSpinnerWhileRendering = Ember.Mixin.create({ layout: Ember.Handlebars.compile('{{ yield }}'), classNameBindings: ['isLoaded'], didInsertElement: ...通过说this.render('action') ,你不仅要告诉它使用action模板,还要告诉ActionController ,实际上你想要action模板,但是使用ActionNewController 。 你需要覆盖: this.render('action', { controller: 'actions.new' }); 更新了JS Bin 。 By saying this.render('action'), you are not just telling it to use the a ...相关文章
更多- Git分支管理
- Eclipse上GIT插件EGIT使用
- 那些年挠头的git
- 创建标签-git入门教程
- 删除文件-git入门教程
- 多人协作-git入门教程
- 配置别名-git入门教程
- 管理修改-git入门教程
- 版本回退-git入门教程
- Bug分支-git入门教程
最新问答
更多- 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
- 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
- OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
- 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
- codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
- 在计算机拍照在哪里进入
- 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
- No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
- 单页应用程序:页面重新加载(Single Page Application: page reload)
- 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
- System.StackOverflow错误(System.StackOverflow error)
- KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
- 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
- android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
- TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
- 企业安全培训的各项内容
- 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
- C#类名中允许哪些字符?(What characters are allowed in C# class name?)
- NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
- 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
- 将多个行和可变行移动到列(moving multiple and variable rows to columns)
- 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
- 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
- Angular $资源不会改变方法(Angular $resource doesn't change method)
- 在Angular 5中不是一个函数(is not a function in Angular 5)
- 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
- 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
- 常见的python rpc和cli接口(Common python rpc and cli interface)
- Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
- 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)