Skip to content

Instantly share code, notes, and snippets.

@runexec
Created May 23, 2022 10:40
Show Gist options
  • Save runexec/eda9de1a230870ffaafb1980cfbc7ee7 to your computer and use it in GitHub Desktop.
Save runexec/eda9de1a230870ffaafb1980cfbc7ee7 to your computer and use it in GitHub Desktop.
Git Snapshot Nothing Hidden
find ./ -type d -maxdepth 1 -iname '.*' -exec echo {}/* \; | sed s/\\.\\///g | sed s/^\\/\\*//g > .gitignore
git add .gitignore
git add .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment