add git's submodule cheetsheet

This commit is contained in:
hirosume 2019-09-24 12:42:23 +00:00
parent 2ee253a56e
commit 07412e72ed

View file

@ -61,4 +61,19 @@ git rebase master -S -f
# See all open pull requests of a user on Github
url::open 'https://github.com/pulls?&q=author:<user>+is:open+is:pr'
# Add a new module
git submodule add <repository> [<path>]
# Update module
git submodule update --init
# Update module without init
git submodule update
# Pull all submodules
git submodule foreach git pull origin master
# Update all submodules
git submodule update --init --recursive
$ branch: git branch | awk '{print $NF}'