Культурный офтопик
 help / color / mirror / Atom feed
From: Michael Bykov <m.bykov@gmail.com>
To: "Культурный офтопик" <smoke-room@lists.altlinux.org>
Subject: Re: [room] git-clean?
Date: Tue, 5 Jan 2010 22:04:45 +0300
Message-ID: <69c7dc8b1001051104t303104b7hd1fc0b101ab5fc6f@mail.gmail.com> (raw)
In-Reply-To: <69c7dc8b1001051102p53a29f77j86c1aeb02a722fac@mail.gmail.com>

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/)

это пойдет?

М.

      reply	other threads:[~2010-01-05 19:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-05 19:02 Michael Bykov
2010-01-05 19:04 ` Michael Bykov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=69c7dc8b1001051104t303104b7hd1fc0b101ab5fc6f@mail.gmail.com \
    --to=m.bykov@gmail.com \
    --cc=smoke-room@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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

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