Skip to content

Instantly share code, notes, and snippets.

@ushiocheng
Last active April 24, 2022 02:52
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 ushiocheng/c174a8ec3b4f1c3d212bc92b9af0d59a to your computer and use it in GitHub Desktop.
Save ushiocheng/c174a8ec3b4f1c3d212bc92b9af0d59a to your computer and use it in GitHub Desktop.
Quick way to hide a directory without change the repository

I sometimes want to put some test data in a repo, but I don't want to change .gitignore for others. So, here is a way to ignore a folder without doing that.

  1. put a .gitignore file in the folder
  2. put ** in the .gitignore file (yes this works)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment