Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Remove large binary files from repository
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
zdroshnya  
View profile  
 More options Oct 1 2008, 6:19 am
From: zdroshnya <hepaminon...@gmail.com>
Date: Wed, 1 Oct 2008 03:19:55 -0700 (PDT)
Local: Wed, Oct 1 2008 6:19 am
Subject: Remove large binary files from repository
Hi all,
is there any procedure for removing some large binary files from a git
(and it's github hosted counterpart) repository?
I was reading this thread from kernel trap, but couldn't really figure
out what to do.

http://kerneltrap.org/mailarchive/git/2007/10/7/331471

Thx in advance


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
GitHub Support  
View profile  
 More options Oct 1 2008, 3:28 pm
From: "GitHub Support" <supp...@github.com>
Date: Wed, 1 Oct 2008 13:28:32 -0600
Local: Wed, Oct 1 2008 3:28 pm
Subject: Re: Remove large binary files from repository

zdroshnya,
Is this file in a recent commit, or far back in the history?  If it's recent
you can remove it with a `git commit --amend` or `git rebase -i`... if it's
back in the history, you will need to use filter-branch.

We have a little guide fro filter-branch that may be easier to understand:
http://github.com/guides/completely-remove-a-file-from-all-revisions

--tek


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
peter  
View profile  
 More options Oct 3 2008, 3:37 am
From: peter <pe...@heysorry.ch>
Date: Fri, 3 Oct 2008 00:37:21 -0700 (PDT)
Local: Fri, Oct 3 2008 3:37 am
Subject: Re: Remove large binary files from repository
Hi – I've got the same problem with some pictures in a folder I want
to remove from the repository because they have been replaced by
better ones. I tried the filter-branch procedure, but it didn't quite
seem to work.

After I executed the first command, a `git commit -a` didn't seem to
do anything. Then, after I removed some files following this
procedure, I noticed that the repository had in fact gotten bigger
instead of smaller… I know, the images shouldn't have been included in
the first place, but I didn't think about repository size back then,
unfortunately.

On a side note: can this filter-branch command also be applied using
wildcards? It didn't seem to work for me.

Thanks,
Peter

On 1 Okt., 21:28, "GitHub Support" <supp...@github.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
GitHub Support  
View profile  
 More options Oct 3 2008, 10:13 pm
From: "GitHub Support" <supp...@github.com>
Date: Fri, 3 Oct 2008 20:13:51 -0600
Local: Fri, Oct 3 2008 10:13 pm
Subject: Re: Remove large binary files from repository

git-filter-branch and git-commit --amend will remove the file from the
commit history, but not from the repo.  To remove the objects from the repo
you'll have to manually force a git-gc, and possibly a git-prune (I'm not
sure what all is pruned when git-gc is called).  I don't think
git-update-index can take wildcards.
You should probably read the docs:
http://www.kernel.org/pub/software/scm/git/docs/git-gc.html
http://www.kernel.org/pub/software/scm/git/docs/git-prune.html
http://www.kernel.org/pub/software/scm/git/docs/git-update-index.html

Github runs gc on a periodic basis.  If you want have the files removed from
the repo immediately, you'll have to delete and recreate the repo.

--tek


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »