git stash pop has an option --index which will try to restore the git index upon pop. How to use it by default? I want git stash pop to restore index by default.

  • P.S. I know I can create a bash alias like git-stash-pop='git stash pop --index', but that feels too hacky. Any alternatives? – VasyaNovikov Feb 2 '17 at 14:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.