Created
March 20, 2018 09:05
-
-
Save bartcerneels/b847025e797f0b10a85b1e81ffb839e7 to your computer and use it in GitHub Desktop.
Exclude current untracked files from repo (not .gitignore)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!/bin/bash | |
git status --porcelain | grep ?? | cut -d\ -f2 >> `git rev-parse --show-toplevel`/.git/info/exclude |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment