Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gitcheckout a specific folder from a branch? #137

Open
jessequinn opened this issue Sep 30, 2018 · 1 comment
Open

gitcheckout a specific folder from a branch? #137

jessequinn opened this issue Sep 30, 2018 · 1 comment

Comments

@jessequinn
Copy link

jessequinn commented Sep 30, 2018

how can I do something like

git checkout master
git checkout source -- _site

gitcheckout: {
   master_gitcheckout: {
      options: {
         branch: "master"
      }
   },
   source_gitcheckout: {
      options: {
         branch: "source -- _site"
      }
   }
}

fails with pathspec 'source -- _site' did not match any file(s) known to git.

@jessequinn
Copy link
Author

I have also tried

        gitcheckout: {
            master_gitcheckout: {
                options: {
                    branch: "master"
                }
            },
            source_gitcheckout: {
                options: {
                    branch: "source"
                },
                files: {
                    src: ['_site/*']
                }
            }

        }
    });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant