Can you just refrain from staging it when you do future commits?
If you always need to modify it, but not commit it, it probably should not be under source control. Delete it, commit the deletion, and add it to the .gitignore file. (Restore the file afterwards, if/when needed locally.) It will never show up as an uncommitted change.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.