git not adding existing folder

前端 未结 2 1700
暗喜
暗喜 2021-01-05 15:56

I started working on a project recently, then decided to push it up to github. So I did the following:

cd 
git init
git add -A
git commit -m \'me         


        
2条回答
  •  情书的邮戳
    2021-01-05 16:28

    Are there files in the folder? Git doesn't track folders, only files; you can't add an empty folder to a Git repo. However, you can put an empty file in that folder (.gitignore or .blank are common file names) and add those files to the folder.

提交回复
热议问题