Skip to content

Instantly share code, notes, and snippets.

@32teeth
Created May 26, 2023 13:55
Show Gist options
  • Select an option

  • Save 32teeth/956f3e5e99b63cf8f1695c6b55868f0d to your computer and use it in GitHub Desktop.

Select an option

Save 32teeth/956f3e5e99b63cf8f1695c6b55868f0d to your computer and use it in GitHub Desktop.
git pre-commit hook to clean your Eagle CAD files
#!/bin/sh
find ./ -type f \( -iname \*.b#\* -o -iname \*.s#\* \) -delete
@32teeth
Copy link
Author

32teeth commented May 26, 2023

Put this file in your local .git folder and when you run a git commit command it will clean up all those .b#1, .b#2, .b#3, .s#1, .s#2, .s#3 files for you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment