How do I commit an empty folder to git repository?
December 21, 2023
by 孫哲瑋
No Comments
Because Git does not allow you to commit an empty directory to your repository, you can create a.gitkeep file in the empty folder and commit it. In Git,.gitkeep is a placeholder. You can also use other files as placeholders, such as.nofile.