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

How to reset a specific file? #91

Open
am opened this issue Dec 18, 2014 · 3 comments
Open

How to reset a specific file? #91

am opened this issue Dec 18, 2014 · 3 comments

Comments

@am
Copy link

am commented Dec 18, 2014

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?

@janpapenbrock
Copy link

Same request here.

@kriskate
Copy link

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

@jml6m
Copy link

jml6m commented Aug 2, 2016

+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.

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

4 participants