
如果新建了个文件夹,但会发现它无法被添加到git里,因为can not hack an mepty directory. 解决办法是在该文件夹里加个.gitignore文件,里面写上
# Ignore everything in this directory
*
!.gitignore
How can I add an empty directory to a Git repository?

如果新建了个文件夹,但会发现它无法被添加到git里,因为can not hack an mepty directory. 解决办法是在该文件夹里加个.gitignore文件,里面写上
# Ignore everything in this directory
*
!.gitignore
How can I add an empty directory to a Git repository?
近期评论