1. 程式人生 > >git刪除目錄下的所有檔案並提交

git刪除目錄下的所有檔案並提交

      git刪除指定目錄下的 所有檔案, 命令如下:

1 刪除
刪除命令列表:

'git rm' [-f | --force] [-n] [-r] [--cached] [--ignore-unmatch] [--quiet] [--] <file>...


強制刪除.idea下的所有檔案
git rm -fr .idea




2 註釋
git commit -m "無用"




3 提交
git push


以某個使用者提交
git push origin master:master