sparse-checkout

Git sparse checkout error “Entry 'path/to/file' not update. Cannot update sparse checkout”

*爱你&永不变心* 提交于 2021-02-08 07:32:35
问题 I've just done a sparse checkout following the steps below git clone http://location/repo.git # create .git/info/sparse-checkout file git config --bool core.sparsecheckout true git read-tree -mu HEAD Unfortunately the final step fails with the error message Entry 'path/to/file' not update. Cannot update sparse checkout Which is strange because (1) path/to/file exists (2) the sparse checkout process succeeded on another machine git version 1.7.1 (Centos 6). The current machine is a Centos 7

Git sparse checkout error “Entry 'path/to/file' not update. Cannot update sparse checkout”

耗尽温柔 提交于 2021-02-08 07:32:10
问题 I've just done a sparse checkout following the steps below git clone http://location/repo.git # create .git/info/sparse-checkout file git config --bool core.sparsecheckout true git read-tree -mu HEAD Unfortunately the final step fails with the error message Entry 'path/to/file' not update. Cannot update sparse checkout Which is strange because (1) path/to/file exists (2) the sparse checkout process succeeded on another machine git version 1.7.1 (Centos 6). The current machine is a Centos 7

git sparse-checkout ignore specific file type

北城余情 提交于 2021-02-08 06:10:11
问题 I have a git repository with a bunch of large csv in them, which I don't want to clone, so I came across git sparse-checkout and this post: https://github.blog/2020-01-17-bring-your-monorepo-down-to-size-with-sparse-checkout/ From this post I took following: git clone --no-checkout https://github.com/john_doe/repo-with-big-csv.git cd repo-with-big-csv git sparse-checkout init --cone Then I edit the .git/info/sparse-checkout and add the following (adapted from example in page above): /* !**/*

git sparse-checkout ignore specific file type

淺唱寂寞╮ 提交于 2021-02-08 06:07:58
问题 I have a git repository with a bunch of large csv in them, which I don't want to clone, so I came across git sparse-checkout and this post: https://github.blog/2020-01-17-bring-your-monorepo-down-to-size-with-sparse-checkout/ From this post I took following: git clone --no-checkout https://github.com/john_doe/repo-with-big-csv.git cd repo-with-big-csv git sparse-checkout init --cone Then I edit the .git/info/sparse-checkout and add the following (adapted from example in page above): /* !**/*

Why does one call `git read-tree` after a sparse checkout

那年仲夏 提交于 2020-05-11 07:43:45
问题 According to Subdirectory Checkouts with git sparse-checkout one calls git read-tree -mu HEAD after configuring a sparse checkout in the case of an already existing repository, i.e.: # Enable sparse-checkout: git config core.sparsecheckout true # Configure sparse-checkout echo some/dir/ >> .git/info/sparse-checkout echo another/sub/tree >> .git/info/sparse-checkout # Update your working tree: git read-tree -mu HEAD Can you please explain the read-tree step in more detail? How does it work?

Why does one call `git read-tree` after a sparse checkout

本秂侑毒 提交于 2020-05-11 07:42:05
问题 According to Subdirectory Checkouts with git sparse-checkout one calls git read-tree -mu HEAD after configuring a sparse checkout in the case of an already existing repository, i.e.: # Enable sparse-checkout: git config core.sparsecheckout true # Configure sparse-checkout echo some/dir/ >> .git/info/sparse-checkout echo another/sub/tree >> .git/info/sparse-checkout # Update your working tree: git read-tree -mu HEAD Can you please explain the read-tree step in more detail? How does it work?

Git and sparse-checkout on large monorepos - hiding irrelevant changes for a sparse-checkout specification? (git-diff, git-log, etc)

江枫思渺然 提交于 2020-04-30 06:37:26
问题 As git is increasingly advertised (and enhanced) to better support very large repositories (so-called "monorepos"), with major recent enhancements to the sparse-checkout workflow (git-sparse-checkout command and partial clone / promisors / --filter), I'm surprised that I can't find a way to leverage the sparse-checkout configuration/specification when dealing with commit history . I see that the topic has been partially brought up in previous questions: filter git commit history after sparse

Unignore directories in git-svn (adding directories to a sparse checkout)

旧巷老猫 提交于 2020-01-04 06:02:46
问题 When using git svn, a sparse checkout of the central repository may be achieved by something along the lines of git clone -s URL-to-root --include-paths 'dir1|dir2|dir3' After using this setup for some time, I would like to add another directory dir4 to those tracked. This directory has existed in many commits that I have already checked out. Editing the variable svn-remote.svn.include-paths by running git config --edit does not have the desired effect on git fetch (only files changed in

Unignore directories in git-svn (adding directories to a sparse checkout)

吃可爱长大的小学妹 提交于 2020-01-04 06:02:30
问题 When using git svn, a sparse checkout of the central repository may be achieved by something along the lines of git clone -s URL-to-root --include-paths 'dir1|dir2|dir3' After using this setup for some time, I would like to add another directory dir4 to those tracked. This directory has existed in many commits that I have already checked out. Editing the variable svn-remote.svn.include-paths by running git config --edit does not have the desired effect on git fetch (only files changed in

Git sparse checkout to only honor a folder at the root of the repo?

萝らか妹 提交于 2020-01-04 05:41:30
问题 We have a repo with a bunch of projects. I am only concern with the "oracle" project within the repo. However, upon pulling down the codebase, I found subdirectories called "oracle" within other folders. Is there a way to only grab the parent folder that matches? git init <repo> cd <repo> git remote add -f origin <url> git config core.sparseCheckout true echo "oracle/" >> .git/info/sparse-checkout Output #ls -l oracle directory123 directoryabc #find . | grep "oracle" directory123/sub1/sub2