• git 管理 Linux 文件系统有两个问题,第一个是 Linux 根文件系统的 root 权限问题,第二个就是git不上传空文件问题。

  • 一、 root权限问题的话就得在 root 用户下git , 只要 su 一下就行了。

  • http://www.cnblogs.com/zengjfgit/p/6243817.html

  • 原理是将所有的空文件都加一个 .gitignore 文件

    find . -name .git -prune -o -type d -empty -exec touch {}/.gitignore \;
    find . -name .git -prune -o -type d -empty -exec touch {}/.emptyFolders \;

相关文章:

  • 2022-12-23
  • 2021-07-27
  • 2021-12-23
  • 2021-12-23
  • 2021-08-18
猜你喜欢
  • 2021-12-23
  • 2021-12-23
  • 2021-05-09
  • 2021-12-16
相关资源
相似解决方案