この質問はこのスレッドに基づいています。
私の.gitmodulesは私の家にあります
[submodule "bin"]
path = bin
url = git://github.com/masi/bin.git
私の家のフォルダ構造:
~
|-- [drwxr-xr-x] bin // this is the folder which I make a submodule
// it is also a folder where I have a Git to push my submodule's files
| -- fileA
` -- folderA
...
走る
git submodule init # I get no output from these commands
git submodule update
走る
git submodule foreach git pull
私は得る
Entering 'bin'
fatal: Where do you want to fetch from today?
Stopping at 'bin'; script returned non-zero status.
バグを修正するための私の最初の仮定は、に変更path = bin
することでしたpath = /Users/Masi/bin
。ただし、これで問題が解決するわけではありません。
Gitのサブモジュールである外部リポジトリからコンテンツをアップロードするにはどうすればよいですか?