2014-08-28 42 views
-4

在使用一個Git用於移動該文件夾它表明destination pathe 'codeignetormail' already exits and is not an empty directory如何使用git bash將文件夾移動到非emty存儲庫?

  1. 庫源文件裏面我有一個文件夾名稱,主文件夾裏面Codeignetor Codeignetor
  2. 和子文件夾appilcation和系統錯誤信息。
  3. 我需要使用Git Blash將'test'子文件夾移動到Codeignetor主文件夾中。

回答

1

閱讀等等等等,我想這就是答案

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 
0

只需用鼠標拖動周圍的文件夾,或者使用移動目錄正常mv,或者你喜歡這樣做。然後,從Git,

git add --all . 

Git會自動檢測到你已經移動了東西。

相關問題