Культурный офтопик
 help / color / mirror / Atom feed
* [room] git-clean?
@ 2010-01-05 19:02 Michael Bykov
  2010-01-05 19:04 ` Michael Bykov
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Bykov @ 2010-01-05 19:02 UTC (permalink / raw)
  To: Культурный
	офтопик

Салют!

Как очистить историю git? Если уже не нужна - как если бы

rm -rf .git
git init

но, скажем, оставить историю только за последние дни/месяцы?

а если я сделаю rm -rf .git; git init; git add remote ...

то что этот remote (github, скажем), не поперхнется?

М.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [room] git-clean?
  2010-01-05 19:02 [room] git-clean? Michael Bykov
@ 2010-01-05 19:04 ` Michael Bykov
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Bykov @ 2010-01-05 19:04 UTC (permalink / raw)
  To: Культурный
	офтопик

2010/1/5 Michael Bykov <m.bykov@gmail.com>:
> Салют!
>
> Как очистить историю git? Если уже не нужна - как если бы
>
> rm -rf .git
> git init
>
> но, скажем, оставить историю только за последние дни/месяцы?
>
> а если я сделаю rm -rf .git; git init; git add remote ...
>
> то что этот remote (github, скажем), не поперхнется?
>
> М.
>

Вот нашел -

rm -rf .git/refs/original/ && git reflog expire --all &&  git gc
--aggressive --prune

(http://dound.com/2009/04/git-forever-remove-files-or-folders-from-history/)

это пойдет?

М.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-05 19:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-05 19:02 [room] git-clean? Michael Bykov
2010-01-05 19:04 ` Michael Bykov

Культурный офтопик

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/smoke-room/0 smoke-room/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 smoke-room smoke-room/ http://lore.altlinux.org/smoke-room \
		smoke-room@lists.altlinux.org smoke-room@lists.altlinux.ru smoke-room@lists.altlinux.com smoke-room@altlinux.ru smoke-room@altlinux.org smoke-room@altlinux.com
	public-inbox-index smoke-room

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.smoke-room


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git