grunt-git icon indicating copy to clipboard operation
grunt-git copied to clipboard

gitcheckout: add ability to checkout files from branch without switching

Open franzheidl opened this issue 11 years ago • 1 comments

It would be great to have the ability to check out files from another branch without switching branches like you can do in git:

git checkout branchname -- filename

Ideally it would be possible to add a files option to gitcheckout to do that:

gitcheckout: {
    your_target: {
        options: {
            branch: 'branchname',
            files: ['filename', 'otherfilename']
        }
    }
}

franzheidl avatar Dec 09 '13 21:12 franzheidl

and git checkout also works w sha refs, so that'd be nice too

pajtai avatar Jan 20 '14 14:01 pajtai