Skip to content

Instantly share code, notes, and snippets.

@HoussemNasri
Last active February 22, 2022 22:27
Show Gist options
  • Save HoussemNasri/1fd07d1f09fde3329518aa5e579bea52 to your computer and use it in GitHub Desktop.
Save HoussemNasri/1fd07d1f09fde3329518aa5e579bea52 to your computer and use it in GitHub Desktop.

Ignore tracked file in git

  1. Add folder/** to .gitignore
  2. Run in the terminal git rm -r --cached folder
  3. Commit and Push

Include Ignored file

  1. Remove file from .gitignore
  2. Run in the terminal git rm -r --cached folder
  3. Run in the terminal git add file
  4. Commit and Push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment