Irc-Unix.net

Главная | Actual Topics | Обратная связь | В избранное | Сделать домашней | Антиспам ;)
Категории
 System & Utilities
 Unix News
 OS Emulator
 Developing
 Learning/Education
 Games
 Humour
Каталог статей
Все статьи

Antispam
Статьи
Биллу Гейтсу тоже предлагают избавиться ...
Вымогательство в борьбе со спамом
Календарь

April, 2019
ПнВтСрЧтПтСбВс
1234567
891011121314
15161718192021
22232425262728
2930
Опросы
Какой из этих ОС Вы отдаете большее предпочтение?

QNX
FreeBSD
Linux(any)
Solaris
Mac OS
Windows XP
Windows 2003
Что такое ОС? :)


Результаты
Другие опросы

Всего голосов: 327
Комментарии: 0
Ссылки

Архив Новостей
 April 2019 (6)
 March 2019 (8)
 February 2019 (11)
 January 2019 (9)
 December 2018 (13)
 November 2018 (7)
 October 2018 (13)
 September 2018 (8)
 August 2018 (8)
 July 2018 (11)
 June 2018 (13)
 May 2018 (10)
 April 2018 (14)
 March 2018 (11)
 February 2018 (13)
 January 2018 (13)
 December 2017 (14)
 November 2017 (15)
 October 2017 (19)
 September 2017 (18)
 August 2017 (13)
 February 2017 (14)
 January 2017 (19)
 December 2016 (16)
 November 2016 (16)
 October 2016 (21)
 September 2016 (18)
 August 2016 (16)
 July 2016 (16)
 June 2016 (20)
 May 2016 (18)
 April 2016 (15)
 March 2016 (22)
 February 2016 (17)
 January 2016 (15)
 December 2015 (15)
 November 2015 (22)
 October 2015 (20)
 September 2015 (17)
 August 2015 (25)
 July 2015 (20)
 June 2015 (23)
 May 2015 (21)
 April 2015 (17)
 March 2015 (19)
 February 2015 (9)
 January 2015 (23)
 December 2014 (9)
 November 2014 (13)
 October 2014 (12)
 September 2014 (18)
 August 2014 (20)
 July 2014 (10)
 June 2014 (12)
 May 2014 (12)
 April 2014 (10)
 March 2014 (22)
 February 2014 (10)
 January 2014 (8)
 December 2013 (26)
 November 2013 (53)
 October 2013 (40)
 September 2013 (48)
 August 2013 (63)
 July 2013 (56)
 June 2013 (52)
 May 2013 (49)
 April 2013 (67)
 March 2013 (74)
 February 2013 (63)
 January 2013 (62)
 December 2012 (62)
 November 2012 (66)
 October 2012 (68)
 September 2012 (48)
 August 2012 (75)
 July 2012 (60)
 June 2012 (71)
 May 2012 (69)
 April 2012 (85)
 March 2012 (86)
 February 2012 (90)
 January 2012 (81)
 December 2011 (103)
 November 2011 (118)
 October 2011 (74)
 September 2011 (2)
 June 2011 (110)
 May 2011 (118)
 April 2011 (111)
 March 2011 (112)
 February 2011 (101)
 January 2011 (119)
 December 2010 (117)
 November 2010 (118)
 October 2010 (131)
 September 2010 (117)
 August 2010 (226)
 July 2010 (351)
 June 2010 (305)
 May 2010 (319)
 April 2010 (343)
 March 2010 (329)
 February 2010 (311)
 January 2010 (312)
 December 2009 (266)
 November 2009 (156)
 July 2009 (101)
 June 2009 (279)
 May 2009 (365)
 April 2009 (348)
 March 2009 (347)
 February 2009 (323)
 January 2009 (318)
 December 2008 (237)
 November 2008 (155)
 October 2008 (334)
 September 2008 (310)
 August 2008 (343)
 July 2008 (362)
 June 2008 (322)
 May 2008 (413)
 April 2008 (1276)
 March 2008 (1658)
 February 2008 (250)
 January 2008 (6)
 November 2007 (1)
 September 2007 (1)
 June 2007 (1)
 May 2007 (1)
 March 2007 (1)
 January 2007 (2)
 December 2006 (1)
 October 2006 (2)
 September 2006 (1)
 August 2006 (2)

Removing Files from Git History

System & Utilities

Today I did run again into an old problem: You need to archive a lot small and large files inside a single Git repository and you have no support for Git LFS available. You did this several year and now you ended up in a state where cloning and working with the repository is unbearable slow.

What now? Last time I did run into that, I archived the overfull repository to some “rest in peace” space and used git filter-branch to filter out no longer needed and too large objects from a repository copy that then will replace the old one for daily use.

There are a lot of guides available how to use git filter-branch for that. All variants I ever used were complex to do and did take very long. Especially if you need several tries to get a sane set of stuff you want to remove to gain enough space savings.

This time, I searched once more and stumbled on the BFG Repo-Cleaner. And yes, it does what it promises on the web site and it seems to be trusted enough to be advertised by e.g. GitHub, too.

Just following the steps described on their landing page allows to shrink your stuff nicely and without a lot of round-trip time.

If you still are just in the “experimenting” phase to see which space decrease one can archive with which file size filter (or which files you want to purge by removing them from master before running the tool), I recommend to swap the step

git reflog expire –expire=now –all && git gc –prune=now –aggressive

with just

git reflog expire –expire=now –all && git gc –prune=now

to not wait potential hours for the aggressive GC. For me that was good enough to get some estimate of the later size for my experiments before I settled to some final settings and did the real run.

And as always, if you touch your Git history: Do that only if you really need to, keep backups, check carefully that afterwards the repository is in some sensible state (git fsck --strict is your friend) and inform all people using that repository that they will need to do a full new clone.





  


Разместил: Planet KDE | Дата: 15.04.2019 | Прочитано: 5 | Раздел: System & Utilities   
16 | System & Utilities | https://cullmann.io/posts/removing-files-from-git-history/ | Planet KDE |

Рейтинг статьи

Средняя оценка: 0.00/0Средняя оценка: 0Всего голосов:0

Отлично
Хорошо Нормально Пойдёт Плохо


Смотрите также связанные темы

31.03.2008 devel/mercurial - 1.0
Upgrade to the long-awaited Mercurial 1.0 release! General: * greatly improved merge tool configuration, see "hgrc.5.txt" for details * improved copy/rename handling in diffs, status, and merge * files in .hg inherit permissions from .hg/store * infer --repository when possible, so commands may be run from anywhere. * easy-installable * new "droplet" logo Extensions: * churn: promoted to an official extension (previously in contrib) * color: new extension coloring "status" and "qseries" command outputs * convert: - allow synthetic history to be spliced...
28.02.2011 New Articles Published for week ending 2/26/11
New Articles Published for week ending 2/26/11 VMware Alive Enterprise VMware Alive Enterprise minimum user requirements for the Hyperic Adapter (1034095) Date Published: 2/23/2011 Starting and stopping VMware Alive Enterprise services (1034903) Date Published: 2/23/2011 Adjusting VMware Alive Enterprise resource and metric limits (1033981) Date Published: 2/23/2011 Configuring Hyperic for Client Authentication in VMware Alive Enterprise (1034426) Date Published: 2/22/2011 Accessing the Alive Enterprise Application Overview widget fails (1034587) Date Published: 2/23/2011 Setting up email...
14.03.2011 New Articles Published for week ending 3/12/11
New Articles Published for week ending 3/12/11 VMware ACE Uploading large attachments (1033726) Date Published: 3/12/2011 VMware Alive Enterprise Health values are not sorting properly in the VMware Alive Enterprise Environment Overview and Resource widget (1035644) Date Published: 3/7/2011 Generating a VMware Alive Enterprise Support Bundle (1035800) Date Published: 3/10/2011 VMware ESX When starting an ESX host, you see message: WARNING: AcpiShared: 194: SSDTd+: Table length 11108 > 4096 (1028039) Date Published: 3/11/2011 Cannot install VMware application due to error: The system ...
24.05.2011 New Articles Published for Week Ending 5/21/11
New Articles Published for Week Ending 5/21/11 Apache Tomcat Determining your version of Tomcat (1033932) Date Published: 5/19/2011 VMware Converter VMware Converter fails with the error: Unable to create a VSS snapshot of the source volume(s) (1039087) Date Published: 5/20/2011 VMware ESX Cursor fails to interact with any objects in the bottom 3 inches of the screen of a full screen virtual machine. (1000467) Date Published: 5/20/2011 Exporting system logs fail for ESX/ESXi host fails with the error: A general system error occurred: internal error (1000558) Date Published: 5/20/2011 Wi...
01.11.2011 New Articles Published for Week Ending 10/29/11
New Articles Published for Week Ending 10/29/11 Apache Tomcat 7 Disabling encoded character parsing with IIS and isapi_redirect.dll (2008465) Date Published: 10/26/2011 Shavlik Submitting feature requests for Shavlik products (2008381) Date Published: 10/25/2011 Shavlik NetChk Protect and vProtect firewall and proxy exceptions list (2006671) Date Published: 10/25/2011 Shavlik NetChk Protect service pack deployment guidelines (2006673) Date Published: 10/26/2011 Command line syntax for the Shavlik Remote Scheduler service (2008379) Date Published: 10/25/2011 Bulletin MSST-001 shows missing a...
29.04.2008 sysutils/sge60 - 6.0.12_2
Fix the option to disable qsh. I failed to notice the qrsh and qlogin are links to qsh so removing it broke them too. When replacing qsh, move the binary to qrsh first.
29.04.2008 sysutils/sge61 - 6.1.4_1
Fix the option to disable qsh. I failed to notice the qrsh and qlogin are links to qsh so removing it broke them too. When replacing qsh, move the binary to qrsh first.
30.04.2008 net-im/libyahoo2 - 0.7.6
Update to 0.7.6. For developers who are using this: the location of the include files has changed from LOCALBASE/include to LOCALBASE/include/libyahoo2/. No ports were affected (according to INDEX-6)
29.12.2015 Luxoft Teams Up with QNX on Automotive ADAS Technologies
"Collaboration focused on advanced technologies, including road scene reconstruction and augmented navigation, which can enable semiautonomous driving.December 15, 2015 Luxoft Holding, Inc. NYSE:LXFT, a leading provider of software development services and innovative IT solutions to a global client base, and QNX Software Systems Limited, a subsidiary of BlackBerry Limited, today announced a new technology partnership focused on ADAS systems used by automotive original equipment manufacturers OEMs and Tier 1 suppliers. As part of the initiative, Luxoft will leverage its expertise in road-model...
04.01.2016 SystemRescueCd 4.7.0
Состоялся релиз SystemRescueCd 4.7.0 — популярного LiveCD для восстановления системы на базе Gentoo.Изменения: Стандартное ядро обновлено до 3.18.25, альтернативное — до 4.1.15. Обновлены среда и драйверы Xorg до xorg-server-1.17.4. Обновлены утилиты для файловой системы Btrfs (до 4.3.1) и программа для клонирования разделов partclone (до 0.8.20). Система инициализации OpenRC обновлена до версии 0.18.4. >>> Скачать (458 МБ)  gentoo, livecd, systemrescuecd
Нет комментариев. Почему бы Вам не оставить свой?
Вы не можете отправить комментарий анонимно, пожалуйста зарегистрируйтесь.
Google Search
Google

Web irc-unix.net

Топ Новостей
1: Fedora and KDE/spin\'s treatment - Discussion
Hot NEWS!
Просмотров - 3317


2: Offline Vaults for an extra layer of protection
Просмотров - 836

3: KDE\'s Kirigami 2.0 Framework for Convergent UIs Enters Beta with New Features
Просмотров - 829

4: Come dine with the KDE e.V. board in Berlin in October
Просмотров - 735

5: Debugging issues booting a PC in 2018
Просмотров - 724

6: Netrunner Desktop 16.09 "Avalon" Linux OS Is Out with Kernel 4.7, KDE Plasma 5.7
Просмотров - 706

7: plib3.gui 0.9.9
Просмотров - 695

8: Konstruct
Просмотров - 680

9: KDE Connect – State of the union
Просмотров - 664

10: Best Desktop Environment
Просмотров - 661

11: Help Canonical Test GNOME Patches, Android Apps Illegally Tracking Kids, MySQL 8.0 Released and More
Просмотров - 660

12: KDE Connect Sprint
Просмотров - 658

13: Bluestar Gives Arch Linux a Celestial Glow
Просмотров - 636

14: Help Canonical Test GNOME Patches, Android Apps Illegally Tracking Kids, MySQL 8.0 Released and More
Просмотров - 621

15: Qt SCXML and State Chart Support in Qt Creator
Просмотров - 618

Google 120X240
Ссылки

Главная | Actual Topics | Статьи | Обратная связь | Guest Book
Генерация: 0.972 сек. и 13 запросов к базе данных за 0.898 сек.
Powered by SLAED CMS © 2005-2007 SLAED. All rights reserved.