Skip to content

Instantly share code, notes, and snippets.

@dfeinzimer
Last active June 27, 2022 19:11
Show Gist options
  • Save dfeinzimer/4be1d480e636c23ed83db2e9d3e23388 to your computer and use it in GitHub Desktop.
Save dfeinzimer/4be1d480e636c23ed83db2e9d3e23388 to your computer and use it in GitHub Desktop.
Mark the provided file as unchanged in git
cd $(dirname "$1");
git update-index --assume-unchanged "$1";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment