Hi Konstantin,

Sorry for my late reply, I was in a trip and could not check it.

Please have a look at:


If I run all steps directly on prompt, it works (you can observe that after 
filtering I have to create a branch so I can trigger this command: 

(git rev-list --branches | while read c; do git tag --contains $c; done) | 
sort -u >/tmp/valid

However, when running the bash it does not work (in the end I have 
/tmp/valid empty when running the script).


On Tuesday, September 17, 2013 2:21:08 PM UTC+2, Gabriel Marchesan Almeida 
> Dear colleagues,
> I am trying to extract subdirectories from a git repo and I have done so 
> far these steps..
> -------------------------------------------------------------------------------------------Filter
> subdirectory 
> git filter-branch --tag-name-filter cat --prune-empty --subdirectory-filter 
> ./Subfolder HEAD
>  Delete history 
> git reset --hard
> git for-each-ref --format="%(refname)" refs/original/ | xargs -n 1 git 
> update-ref -d
> git reflog expire --expire=now --all
> git gc --aggressive --prune=now 
> -------------------------------------------------------------------------------------------
> The problem is that it extracts all the tags and not the only ones from 
> this repo. 
> Would you have any idea how could I do it?
> Thanks & regards

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.

Reply via email to