Re: [git-users] Remove files and folders permanently from commit history and pack files

2014-07-16 Thread cemico
1. Sorry, i don't really understand what the question is. What does rebasing and marking with e mean? Is it possible to achieve what i want with that rebasing and eing? 2. We did this: git filter-branch --index-filter 'git rm -rf --cached --ignore-unmatch DIRECTORY/' --prune-empty

Re: [git-users] Remove files and folders permanently from commit history and pack files

2014-07-16 Thread Magnus Therning
On Wed, Jul 16, 2014 at 12:11:49AM -0700, cemico wrote: 1. Sorry, i don't really understand what the question is. What does rebasing and marking with e mean? Is it possible to achieve what i want with that rebasing and eing? Using `git rebase -i` you can do changes to history manually.

Re: [git-users] Remove files and folders permanently from commit history and pack files

2014-07-16 Thread Magnus Therning
On Wed, Jul 16, 2014 at 09:34:32AM +0200, Magnus Therning wrote: On Wed, Jul 16, 2014 at 12:11:49AM -0700, cemico wrote: 2. We did this: git filter-branch --index-filter 'git rm -rf --cached --ignore-unmatch DIRECTORY/' --prune-empty --tag-name-filter cat -- --all and afterwards:

Re: [git-users] Remove files and folders permanently from commit history and pack files

2014-07-16 Thread cemico
After running the commands with filter-branch etc., my folder (let's say concept) i want to remove from all commits, really gets deleted from all commits. even the physical folder gets deleted (good!) but the pack file stays the exact same way too big 1,3 GB I want to remove folders and files -

Re: [git-users] Remove files and folders permanently from commit history and pack files

2014-07-16 Thread Magnus Therning
On Wed, Jul 16, 2014 at 12:40:41AM -0700, cemico wrote: After running the commands with filter-branch etc., my folder (let's say concept) i want to remove from all commits, really gets deleted from all commits. even the physical folder gets deleted (good!) but the pack file stays the exact

Re: [git-users] Remove files and folders permanently from commit history and pack files

2014-07-16 Thread cemico
As far as i understood, the pack file get's generated through the git gc garbage collection command. But i tried really much by now and didn't find the right way. That's the only point i'm missing: How to rewrite the pack file, ignoring every file and folder that's not in the commit history. Am

Re: [git-users] Remove files and folders permanently from commit history and pack files

2014-07-16 Thread Magnus Therning
On Wed, Jul 16, 2014 at 12:49:20AM -0700, cemico wrote: As far as i understood, the pack file get's generated through the git gc garbage collection command. But i tried really much by now and didn't find the right way. That's the only point i'm missing: How to rewrite the pack file, ignoring

Re: [git-users] Remove files and folders permanently from commit history and pack files

2014-07-16 Thread cemico
I thank you for the infos and i'll try that repack and unpack thing. I need to keep the pack file small, because if i have, like i do, 50 Projects on my server and every small wordpress project has 2-3 Gigabyte disc space, my server runs out of space soon. In the future i have to .gitignore my

[git-users] Edit git patches with --minimal diff option

2014-07-16 Thread Taowei Luo
When running git diff or git format-patch, we know we may get a more simply patch by --minimal option. I also want to split the changes in a file to several patches. So I use git add -e or git add -p or git add -i. My problem is I can't get these two things together. Say, using git add -e to

[git-users] Unable to open previous versions of my project in GIT

2014-07-16 Thread K.V. Lakshmi
Hello! I have created a project folder that has various word/text files, excel/.xml files, and presentations in my local system. I have intialized, staged and committed all the files of the folder in GIT. As an exercise, to get familiarised with GIT, I have modified one of the word document,

Re: [git-users] Unable to open previous versions of my project in GIT

2014-07-16 Thread Magnus Therning
On Wed, Jul 16, 2014 at 04:34:50AM -0700, K.V. Lakshmi wrote: Hello! I have created a project folder that has various word/text files, excel/.xml files, and presentations in my local system. I have intialized, staged and committed all the files of the folder in GIT. As an exercise, to

[git-users] Git and binary files ... once more

2014-07-16 Thread Dominik Rauch
Hi! Although I've read a lot of resources concerning the topic Handling binary files with Git I'm still confused. Hopefully you can help me to find definitive answers :-) If you ask people about Git and binary files the answers are often: Git is a SCM and not a backup solution or dependences

Re: [git-users] Unable to open previous versions of my project in GIT

2014-07-16 Thread John McKown
On Wed, Jul 16, 2014 at 6:34 AM, K.V. Lakshmi lakshmiau...@gmail.com wrote: Hello! I have created a project folder that has various word/text files, excel/.xml files, and presentations in my local system. I have intialized, staged and committed all the files of the folder in GIT. As an

[git-users] git branch does not rev-parse its arguments

2014-07-16 Thread Daniel Fanjul
Hi, In the command: git branch (--set-upstream-to=upstream | -u upstream) [branchname] upstream is 'rev-parsed' but branchname is not. *$ git checkout foo; git checkout bar* *Switched to branch 'foo'* *Switched to branch 'bar'* *$ git branch -u @ foo #A* *Branch foo set up to track local

Re: [git-users] Git and binary files ... once more

2014-07-16 Thread Konstantin Khomoutov
On Wed, 16 Jul 2014 05:21:50 -0700 (PDT) Dominik Rauch dominik.rauch@gmail.com wrote: [...] Main question: The existence of tools like git-annex, git-fat, git-media, etc. hints that Git has problems with binary files in some way. Although I've studied as much internal docs as I could

Re: [git-users] Remove files and folders permanently from commit history and pack files

2014-07-16 Thread Dale R. Worley
From: cemico webmas...@cemico.de How do i remove let's say a concept_art folder from all commits (i have about 50 commits by now) and from the pack file? I tried many things now. e.g: - http://dound.com/2009/04/git-forever-remove-files-or-folders-from-history/ -

Re: [git-users] git branch does not rev-parse its arguments

2014-07-16 Thread Konstantin Khomoutov
On Wed, 16 Jul 2014 13:41:29 +0100 Daniel Fanjul daniel.fanjul.alcu...@gmail.com wrote: In the command: git branch (--set-upstream-to=upstream | -u upstream) [branchname] upstream is 'rev-parsed' but branchname is not. [...] Unfortunately, it's futile to report bugs on this list: here,

[git-users] Re: Git and binary files ... once more

2014-07-16 Thread Dominik Rauch
Hi! Thank you for your initial reply. (1) if those pack files aren't getting to big this should not be a problem. However, it concerns my follow-up questions on known Git upper limits. (2) Yeah, no difference to Subversion here. (3) We do not require any locking of those binaries. On the