Skip to content

Instantly share code, notes, and snippets.

@juliobetta
Created September 10, 2019 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juliobetta/59269eb8d48219db627315cfefd6f021 to your computer and use it in GitHub Desktop.
Save juliobetta/59269eb8d48219db627315cfefd6f021 to your computer and use it in GitHub Desktop.
remove a file from history after added to .gitignore
git update-index --skip-worktree <filepath>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment