Whenever I try to add folders to git hub it gives "files are empty" am i missing something? Anyone know why? It seems to me that I'm adding the folders wrong.
            Asked
            
        
        
            Active
            
        
            Viewed 68 times
        
    2 Answers
2
            
            
        Git/GitHub doesn't store empty directories.
Convention is to put empty .gitkeep file in it.
Do you need more detailed technical explanation? Check this answer
 
    
    
        Community
        
- 1
- 1
 
    
    
        Tomas Votruba
        
- 23,240
- 9
- 79
- 115
- 
                    1But the folders are not empty – Coleton O'Donnell Apr 22 '16 at 17:48
- 
                    Could you link me the repo? – Tomas Votruba Apr 22 '16 at 20:11
0
            
            
        find . -type d -empty -not -path '*/\.*' -exec touch {}/.gitkeep \; will ignore empty directories inside the .git folder
 
    
    
        Khairul Islam
        
- 1,207
- 1
- 9
- 20
