我也做了以下步驟來分離一個弗拉貝應用(在我的情況ERPNext)從源repository-
首先,我已經經由終端移動到弗拉貝臺上的/應用/ erpnext和比設定向私人回購我已經提出,應用遠程URL,通過
git remote set-url origin git://my-repo.url.here
而且比我運行下面的命令來檢查遠程版本erpnext-
git remote -v
它顯示了以下輸出 -
origin https://github.com/my_git_user_name/REPOSITORY.git (fetch)
origin https://github.com/my_git_user_name/REPOSITORY.git (push)
upstream https://github.com/frappe/bench.git (fetch)
upstream https://github.com/frappe/bench.git (push)
這意味着,雖然我把我的應用程序遠程URL對我自己的回購,板凳更新命令仍然從上游更新的應用程序,在我的情況, frappe/bench。
,所以我必須先刪除upstream-
git remote rm upstream
而不是設置新的上游對我repo-
git remote add upstream https://github.com/my_git_user_name/REPOSITORY.git
比我還通過終端和運行去板凳回購文件夾以下命令遷移變更 -
bench migrate
現在,如果我運行工作臺更新,我發現我的應用正在從我的私人回購更新。 (雖然,長凳會從官方回購更新)
這些步驟可以爲任何frappe應用程序完成。