What does tree-ish mean in Git?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm very confused about how to use git archive . I have a git repository with folder Foo , Bar and Baz at the top level. I need to export folder Foo in a SVN-ish sort of way for quick test deployment. I learned that I could use git-archive in an SVN-ish export sort of way . But here's the thing, The following works fine: git archive master | tar -x -C ~/destination it results in Foo , Bar , Baz folders in the destination folder. However, the following will error out with fatal not a valid object name : git archive master/foo | tar -x -C ~