What are all available Git special files that can be committed to a repository?
Two examples I can think of are
Can someone list all of them?
One Solution collect form web for “What are all available Git special files that can be committed to a repository?”
I grepped the git repository of git itself, and while I don’t think an official list exists anywhere, I did notice that all the ones I know about were mentioned in the git-config manpage (
git help config). So with that, I did a search for “file” on that page, and here’s what I found:
.gitignore– List of blobs for git to ignore. Affects commands like
.gitattributes– Let’s you define attributes on files (e.g., to change how files look in a diff).
.mailmap– Lets you tell git that duplicate names or emails in the history are actually the same person. Affects commmands like
git shortlog -ns, or
git log --format="%aN <%aE>".
.gitmodules– Let’s you define submodules (subdirectories of your git repository which are checkouts of other git repositories).
*.keep– Something to do with making
git gcignore packs. I couldn’t find much info on this, so I’m not even sure if it’s a file that you commit to the repository or just something that lives in
.git. If someone knows more please comment.
That’s all I found. I hope I didn’t miss anything.