Re: [git-users] rebase remove ignored files

2014-01-23 Thread Thomas Ferris Nicolaisen
On Wednesday, January 22, 2014 11:16:31 AM UTC+1, Magnus Therning wrote:

 You might also be interested in BFG, it's a tool I haven't had a 
 reason to investigate further yet, but it sounds like it could be a 
 more friendly option: 
 http://rtyley.github.io/bfg-repo-cleaner/ 

 http://www.theguardian.com/info/developer-blog/2013/apr/29/rewrite-git-history-with-the-bfg
  
 http://episodes.gitminutes.com/2013/04/gitminutes-06-roberto-tyley-on.html 


Just to +1 a little on the BFG: I think new Git users will have an easier 
time using BFG than getting into filter-branch, when we're talking about 
simple operations (like removing a single big file from history, etc).

GitHub trainer Matthew McCullough has presented many a times on how to user 
filter-branch. Unfortunately, the repositories with examples have been 
moved around too much so I can't find them anymore, but I found some 
leftovers here:

* http://training.github.com/articles/lesson-filter-branch/

And maybe this one will help:

* https://help.github.com/articles/remove-sensitive-data

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [git-users] rebase remove ignored files

2014-01-22 Thread Magnus Therning
On Wed, Jan 22, 2014 at 9:36 AM, Philipp Kraus
philipp.kr...@flashpixx.de wrote:
 Hello,

 I have got a large Git repo, but on beginning there wasn't a gitignore file,
 so during the time there are a lot of (binary) files which are stored in the
 repository. I have add these files to a gitignore and run git rm to remove
 them, but can I rebase the repo, so that these files are also removed from
 the history? I will shrink the repo size.

What you are asking for is a way to rewrite history, and if you
search for it you'll find several good resources on how to use `git
filter-branch` which is the command you are looking for.  Beware
though, it's a Swiss Army Knife with nuclear power, run it on backups
of your repo before you use it on the production repo.

You can start here:
http://git-scm.com/book/ch6-4.html#The-Nuclear-Option:-filter-branch

You might also be interested in BFG, it's a tool I haven't had a
reason to investigate further yet, but it sounds like it could be a
more friendly option:
http://rtyley.github.io/bfg-repo-cleaner/
http://www.theguardian.com/info/developer-blog/2013/apr/29/rewrite-git-history-with-the-bfg
http://episodes.gitminutes.com/2013/04/gitminutes-06-roberto-tyley-on.html

Please come back and let us know what you ended up using and how it went.

/M

-- 
Magnus Therning  OpenPGP: 0xAB4DFBA4
email: mag...@therning.org   jabber: mag...@therning.org
twitter: magthe   http://therning.org/magnus

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [git-users] rebase remove ignored files

2014-01-22 Thread Philipp Kraus


Am Mittwoch, 22. Januar 2014 11:16:31 UTC+1 schrieb Magnus Therning:

 On Wed, Jan 22, 2014 at 9:36 AM, Philipp Kraus 
 philip...@flashpixx.de javascript: wrote: 
  Hello, 
  
  I have got a large Git repo, but on beginning there wasn't a gitignore 
 file, 
  so during the time there are a lot of (binary) files which are stored in 
 the 
  repository. I have add these files to a gitignore and run git rm to 
 remove 
  them, but can I rebase the repo, so that these files are also removed 
 from 
  the history? I will shrink the repo size. 

 What you are asking for is a way to rewrite history, and if you 
 search for it you'll find several good resources on how to use `git 
 filter-branch` which is the command you are looking for. 


Thanks, seems to be my mistake. I have searched for rebase and not 
filter branch.

Phil 

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.