git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree submodule add -f https://git.oschina.net/{UserName}/iOS_DYLibrary.git iOS_DYLibrary_
Cloning into 'iOS_DYLibrary_'...
fatal: could not read Username for 'https://git.oschina.net': Device not configured
fatal: clone of 'https://git.oschina.net/{UserName}/iOS_DYLibrary.git' into submodule path 'iOS_DYLibrary_' failed
Completed with errors, see above
url 换成
Url: https://{username}:{password}@git.oschina.net/{username}/repo.git
补充: 直接cmd 命令行操作就行了