mirror of
https://github.com/denisidoro/navi
synced 2024-11-24 20:43:06 +00:00
add git's submodule cheetsheet
This commit is contained in:
parent
2ee253a56e
commit
07412e72ed
1 changed files with 15 additions and 0 deletions
|
@ -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}'
|
||||
|
|
Loading…
Reference in a new issue