Imran Omar Bukhsh
Imran Omar Bukhsh

Reputation: 8071

Git not showing 'assets' folder

I have a folder called 'assets' ( auto generated when creating a new android app using the wizard in netbeans ) but it does not show up in the git command line, nor does it get added to the repo even if I try to.

Any help?

Upvotes: 1

Views: 3291

Answers (2)

Tano
Tano

Reputation: 3910

Git doesn't work with (empty) folders, only with files. If you need to commit a folder you need to check a file within, in order to force git to recreate that folder.

I suggest you to commit an empty file that begins with an underscore '.' like ".keep", this file will be ignored by android build process.

I hope that helps you

Upvotes: 1

tom
tom

Reputation: 19153

Sounds like the directory is git-ignored. Check .gitignore at the root of your Git repo, and ~/.gitignore (your global ignore settings). Does assets show up in there? If so, do git add -f assets/ to force the add.

Upvotes: 4

Related Questions