Skip to content

Instantly share code, notes, and snippets.

@jbutko
Last active January 31, 2019 09:06
Show Gist options
  • Save jbutko/6ecf189f2a63144218f914f9e10cd353 to your computer and use it in GitHub Desktop.
Save jbutko/6ecf189f2a63144218f914f9e10cd353 to your computer and use it in GitHub Desktop.
Git: useful commands
# ignore files locally
git update-index --assume-unchanged file
# or
git update-index --skip-worktree file
# to revert
git update-index --no-assume-unchanged file
git update-index --no-skip-worktree package-lock.json
# properly rename caseSensitive folders
git mv casesensitive tmp
git mv tmp CaseSensitive
# via https://stackoverflow.com/a/11183844/3151019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment