How to skip “Loose Object” popup when running 'git gui'
来源:互联网 发布:ibatis 打印sql语句 编辑:程序博客网 时间:2024/06/11 07:06
转自:https://stackoverflow.com/questions/1106529/how-to-skip-loose-object-popup-when-running-git-gui
Since nobody had yet an answer, I looked into the code to see how to remove the code which shows up that dialog. I found the hint_gc
procedure which does it and the place where it is called. At the same time I noticed that late 2011 there was added a configuration option for disabling the dialog. This change (part of git-gui 0.16.0) was merged to Git's mainline on 2011-12-14.
So if you use Git v1.7.9 or newer, you can disable the warning dialog with the following command:
git config --global gui.gcwarning false
If you are using an older version, then you can edit /lib/git-core/git-gui
and remove the after 1000 hint_gc
line, or edit /usr/share/git-gui/lib/database.tcl
and remove the body of the hint_gc
procedure. (These file paths are on Cygwin - on other environments the files might be in a different locations. For Windows it is c:\Program Files\Git\mingw64\libexec\git-core\git-gui.tcl
)
Since nobody had yet an answer, I looked into the code to see how to remove the code which shows up that dialog. I found the hint_gc
procedure which does it and the place where it is called. At the same time I noticed that late 2011 there was added a configuration option for disabling the dialog. This change (part of git-gui 0.16.0) was merged to Git's mainline on 2011-12-14.
So if you use Git v1.7.9 or newer, you can disable the warning dialog with the following command:
git config --global gui.gcwarning false
If you are using an older version, then you can edit /lib/git-core/git-gui
and remove the after 1000 hint_gc
line, or edit /usr/share/git-gui/lib/database.tcl
and remove the body of the hint_gc
procedure. (These file paths are on Cygwin - on other environments the files might be in a different locations. For Windows it is c:\Program Files\Git\mingw64\libexec\git-core\git-gui.tcl
)
- How to skip “Loose Object” popup when running 'git gui'
- How to make XStream skip unmapped tags when parsing XML?
- git“fatal: loose object”错误解决办法汇总
- git“fatal: loose object”错误解决办法汇总
- git 错误 fatal: loose object...is corrupt解决方法
- How to Untarget the JMS Reporting Provider When Server Not Running
- How to NSLog a Call stack when a program is running?
- git出现loose object 8ddef...(stored in .git/objects/8d/def9c03e8...) is corrupt和failed to push some re
- how to fix GIT error: object file is empty?
- how to fix GIT error: object file is empty?
- How to popup the windows system menu?
- How to Disable Annoying Admin Popup Messages
- How To Skip Search Dialog Box
- When and How to Micromanage
- How to find the log I want when using 'git log'
- nothing to loose?
- How to Use BCM GUI
- How to uninstall git
- 可变参数
- LinkedHashMap及其源码分析
- 1007.Numerical Summation of a Series
- Cookie和Session的区别
- 步态识别问题简介
- How to skip “Loose Object” popup when running 'git gui'
- 1.1.5 memcached
- QT原子操作QAtomic API和锁QMutex
- 基本数据类型常见问题
- UVA1218[Perfect Service] 树上动态规划模型
- 用循环链表解决报数淘汰问题
- Unity内存优化方案集合
- 数据归一化(normalizing)的直观理解和通俗解释。
- HDU