Difference between git subtree and git filter-banch -


is there difference between these 2 commands?

git subtree split --prefix=some_subdir -b some_branch 

and

git filter-branch --subdirectory-filter some_subdir some_branch 

i use git filter-branch instead of git subtree because want delete files in new branch, worried guarantee, true git subtree, might not valid git filter-branch:

repeated splits of same history guaranteed identical (ie. produce same commit ids). because of this, if add new commits , re-split, new commits attached commits on top of history generated last time, 'git merge' , friends work expected.

filter-branch not give such guarantee, when using on hoping side. subdirectory filter has reproducible results , filter-branch not touch commit information (commit , author timestamp , person). information commit sha created from, filter-branch should generate same history again.

that’s going long filter-branch not start making guarantees, , seems unlikely.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -