-2

Using git, I am wondering if I can check in empty folder or not?

Adam Lee
  • 24,710
  • 51
  • 156
  • 236
  • Please look at the suggested questions before posting. This is a really popular question. – pmr Feb 08 '13 at 13:44

1 Answers1

1

No, you can't. You cannot commit empty folders in Git.

A common work-around is to add an empty .gitkeep file to the folder, and check that in, or to simply place a .gitignore, ignoring the types of files that will wind up in that folder. Presumably, you want to ignore them, or you'd have something to commit.

user229044
  • 232,980
  • 40
  • 330
  • 338