| 
                    
                         Be the first user to complete this post  
                    
                     | 
                Add to List | 
Configuring jshint as a pre-commit hook for your nodejs applications
and you will get all your working-directory-only changes back.npm install grunt-githooks --save-dev
module.exports = {
  all: {
    'pre-commit': 'jshint',
  }
};
grunt.config( 'githooks', require('./grunt/githooks.js') );
grunt.loadNpmTasks('grunt-githooks');
grunt githooks
git stash save --keep-index
git stash pop
Also Read:
- Scaling a basic nodejs application using clusters
 - Access the request body of a post request in your nodejs - expressjs app.
 - Resolved - sudo npm command not found
 - Understanding expressjs middleware with a visual example
 - Dynamic module loading with require