新建.gitkeep文件
在空文件夹下新建.gitkeep文件,是空文件,这样就能提交git仓库了
如果是文件里面原本有东西,但是只想上面自己的文件夹名字,不想上传内容
新建.gitignore文件
在空文件夹下新建.gitignore文件,文件内容:
# Ignore everything in this directory
*
# Except this file
!.gitignore
新建.gitkeep文件
在空文件夹下新建.gitkeep文件,是空文件,这样就能提交git仓库了
如果是文件里面原本有东西,但是只想上面自己的文件夹名字,不想上传内容
新建.gitignore文件
在空文件夹下新建.gitignore文件,文件内容:
# Ignore everything in this directory
*
# Except this file
!.gitignore