Skip to content

Instantly share code, notes, and snippets.

@rrrokhtar
Created November 13, 2023 06:26
Show Gist options
  • Select an option

  • Save rrrokhtar/2cfed5d459acd59b267678e2277569de to your computer and use it in GitHub Desktop.

Select an option

Save rrrokhtar/2cfed5d459acd59b267678e2277569de to your computer and use it in GitHub Desktop.
GIT COMMON FORGOTS
  1. Ignore file locally
git update-index --skip-worktree <file-list>
git update-index --no-skip-worktree <file-list>
  1. Add to .ignore index locally ('/.vscode/*') for example
echo '/.vscode/*' >> .git/info/exclude
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment