我克隆了一個存儲庫,並執行了一些本地更改。 然後我做了一個git pull origin從原點獲取更新的更改。然後我做一個git push推到我的克隆庫。然而,子模塊未按: Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git che
我已經在另一個裏面有一個git repo。假設目錄結構如下: repo1
--.git
--repo2
--.git
我該如何告訴git我希望repo2是一個子模塊?請注意,我已經在磁盤上的整個git回購(我試圖做git submodule add repo2,但它說repo URL: 'repo2' must be absolute or begin with
我將git存儲庫的內容移動到另一個存儲庫,對於所有常規提交,一切都很好。不過,我遇到了子模塊的問題。 設置,我們從兩個回購開始。我們稱他們爲「文檔」,「行動」,我們要「文檔」的內容移動到「操作」的子目錄,像這樣: docs/
file1.txt
dir1/
file2.txt
other-docs/ <- This is a git submodule