lookifamily.blogg.se

Download git repository
Download git repository









download git repository download git repository

While git doesn't track empty directories, git archive can be tricked into putting some into archives. (Merged by Junio C Hamano - gitster - in commit 62b1cb7, ) archive: don't add empty directories to archives " git archive", especially when used with pathspec, stored an emptyĭirectory in its output, even though Git itself never does so.

#Download git repository update

Update with Git 2.14.X/2.15 (Q4 2017): it will make sure to avoid adding empty folders. Note: git -git-dir is an option of the command git, not git clone. The repo folder would include only the file, without. git -git-dir=/path/to/another/folder.git clone -depth=1 /url/to/repo Git archive -format=tar aTag -o aTag.tarĪnother option would be to do a shallow clone (as mentioned below), but locating the. So you would need to clone (shallow to quicken the clone step), and then archive locally: git clone -depth=1 yyy Note: that does not work for GitHub (not supported) To list only first-level folders of a remote repo: git archive -remote= | tar -t -exclude="*/*" | grep "/" If you need folders and files just from the first level: git archive -remote= | tar -t -exclude="*/*" You can then use that archive anywhere, giving you back only files, no. See backing up project which uses git: it will include in an archive all files (including submodules if you are using the git-archive-all script) The git command that would be the closest from what you are looking for would by git archive.











Download git repository