Created
September 19, 2018 07:23
-
-
Save abhijitmamarde/020b6cd31372b44d8a1f26277d36dbd1 to your computer and use it in GitHub Desktop.
add all current untracked files to git ignore
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
$ git status -s | |
?? bmp.log | |
?? log.html | |
?? output.xml | |
?? report.html | |
$ git ls-files --others --exclude-standard | |
bmp.log | |
log.html | |
output.xml | |
report.html | |
$ git ls-files -o --exclude-standard | |
bmp.log | |
log.html | |
output.xml | |
report.html | |
$ git ls-files -o --exclude-standard >> .gitignore | |
$ git status -s | |
M .gitignore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment