Skip to content

Instantly share code, notes, and snippets.

@lvluu
Last active March 31, 2023 03:46
Show Gist options
  • Select an option

  • Save lvluu/eb515b84a95f72353a9f02a38ce8cab7 to your computer and use it in GitHub Desktop.

Select an option

Save lvluu/eb515b84a95f72353a9f02a38ce8cab7 to your computer and use it in GitHub Desktop.
Git ignore files locally
# Locally ignore changed file(s)
git update-index --skip-worktree [PATH]
# Bring it back
git update-index --no-skip-worktree [PATH]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment