在使用一個Git用於移動該文件夾它表明destination pathe 'codeignetormail' already exits and is not an empty directory
如何使用git bash將文件夾移動到非emty存儲庫?
- 庫源文件裏面我有一個文件夾名稱,主文件夾裏面Codeignetor Codeignetor
- 和子文件夾appilcation和系統錯誤信息。
- 我需要使用Git Blash將'test'子文件夾移動到Codeignetor主文件夾中。
在使用一個Git用於移動該文件夾它表明destination pathe 'codeignetormail' already exits and is not an empty directory
如何使用git bash將文件夾移動到非emty存儲庫?
閱讀等等等等,我想這就是答案
test
mail
sub folders
codeignetor
application
system
mail
file.txt
我需要到該文件夾移動到文件夾Codeignetor。我的猜測,..
您可以嘗試在兩個步驟..
git mv
或
mv test/mail codeignetor
git rm -r mail
git add codeignetor/mail
只需用鼠標拖動周圍的文件夾,或者使用移動目錄正常mv
,或者你喜歡這樣做。然後,從Git,
git add --all .
Git會自動檢測到你已經移動了東西。