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

How to reset a specific file?

Open am opened this issue 11 years ago • 3 comments

I've used the files configurations to include only the files I want to reset, but still resets all the modified files. Is this supported?

am avatar Dec 18 '14 10:12 am

Same request here.

janpapenbrock avatar Feb 09 '15 14:02 janpapenbrock

up! same here

    gitreset: {
        layoutManager:{
            options: {
                mode:'hard',
                commit: 'HEAD~1'
            },
            files: {
                src: '<%= yeoman.app %>/scripts/managers/layoutManager.js'
            }
        }
     },

Resets everything... and gitcheckout does not support files

kriskate avatar Sep 17 '15 15:09 kriskate

+1

I'm using grunt-asset-fingerprint to tag some files when packaging for deployment...this involves changing references to those files within other files.

However, I don't want to check in the changed references...so I'd like to be able to reset individual files using grunt.

jml6m avatar Aug 02 '16 14:08 jml6m