Reputation: 109
How do you add hidden files in like .flake8 in git? Git add . does not work and not even adding subdirectories. Gitignore is not the issue. Thanks.
Upvotes: 2
Views: 8361
Reputation: 94483
Nothing fancy, just
git add .flake8
PS. git add .
also must work. In what way it doesn't work for you?
Upvotes: 1
Reputation: 695
For individual files
git add .hiddenfile
for file groups
git add .hidden*
and if in a subdirectory,
git add directory
will include the hidden files in that directory.
Also see Force git to add dotfiles to repository
Upvotes: 1