git提交空文件夹

在文件夹中创建 .gitkeep 文件,文件内容如下

# Ignore everything in this directory   
*   
# Except this file !.gitkeep   

保存即可

git删除远程文件

git rm filename(同时在缓存和物理存储中删除文件,慎用

git rm --cache filename(只在缓存中删除对应的文件)

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-16
  • 2022-01-04
  • 2021-11-20
猜你喜欢
  • 2021-06-04
  • 2022-12-23
  • 2021-10-05
  • 2021-12-14
  • 2022-01-07
  • 2021-11-20
  • 2021-09-16
相关资源
相似解决方案