有没有办法自动拥有git submodule update
(或最好git submodule update --init
随时呼叫git pull
完成了吗?
寻找一个git配置设置,或一个git别名来帮助这一点。
发布于 2018-03-26 09:21:18
git config --global alias.pullall '!git pull && git submodule update --init --recursive'
如果希望将参数传递给git拉,则使用以下命令:
git config --global alias.pullall '!f(){ git pull "$@" && git submodule update --init --recursive; }; f'
https://stackoverflow.com/questions/-100003689
复制相似问题