Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 3
    The reasons to use .keep over .gitkeep are very good. A good balance between simple and less confusing. Namespaces seem important and it should not be broken that .git.... looks like git's own file namespace. Additional documentation could go the projects global readme or coding style guides or a local readme. If you have adopted the .gitkeep habit, simply find the files and rename them: git mv .gitkeep .keep. Embrace change! The .gitignore solution recommended by the git documentation seems a hacky workaround and over complicated. Commented Oct 29, 2018 at 13:54
  • On Windows, the touch command is part of Git Bash (the explorer plugin); another option is by using WSL. Commented Jan 26, 2023 at 9:57