當前位置:首頁 » 文件管理 » idea文件夾

idea文件夾

發布時間: 2023-06-12 21:51:07

A. git刪除項目中多餘的文件夾 - 以idea為例

idea工具在創建項目時會自動生成許多自帶的文件,這些文件是idea用來管理項目配置的。如其中常見的.idea文件夾

以下是網上找的案例:

git rm -r --cached .setting #--cached不會把本地的.setting刪除

git commit -m 'delete .setting dir' #提交到本地分支

git push -u origin master #push到伺服器分支上

但是在win環境中有一個問題,就是早嘩在commit這一步的時候會出現如下錯誤:

error: pathspec 'dir'' did not match any file(s) known to git

這里可能是因為系統的原因吧。

我們只需要把它改成這樣:git commit -m "delete .setting dir"  回車就可以了;

第三步可以根據伺服器上的分支名字進行自定義修改,別push錯了返睜升!這里回車後可能會出現輸入用戶名和密碼別錯了!

做個排錯記錄一下!!漏老!

熱點內容
安卓怎麼傳視頻 發布:2025-07-08 04:03:26 瀏覽:914
oracle測試sql 發布:2025-07-08 03:16:54 瀏覽:974
php壁紙源碼 發布:2025-07-08 03:04:26 瀏覽:321
android應用層 發布:2025-07-08 02:42:32 瀏覽:301
大唐存儲銷量 發布:2025-07-08 02:41:11 瀏覽:582
腳本怎麼打開 發布:2025-07-08 02:41:06 瀏覽:822
貴州電信iPtv升級伺服器地址 發布:2025-07-08 02:38:48 瀏覽:412
電腦怎麼鏈接本地伺服器 發布:2025-07-08 02:34:22 瀏覽:147
android調試webview 發布:2025-07-08 02:26:28 瀏覽:358
壓縮袋鞋子 發布:2025-07-08 02:21:30 瀏覽:752