I'd like to know all distinct extensions of files tracked by git in a given repo, in order to create appropriate .gitattributes
file.
Example output expected:
bat
gitignore
gradle
html
jar
java
js
json
md
png
properties
py
svg
webp
xml
yml
What command can I use for that?
&& !$a{$1}++
(with single quotes around the whole command) to only print the first occurrence of each result. – Eal