mirror of
https://github.com/denisidoro/navi.git
synced 2024-09-19 22:37:16 +03:00
add git's submodule cheetsheet
This commit is contained in:
parent
2ee253a56e
commit
07412e72ed
@ -61,4 +61,19 @@ git rebase master -S -f
|
|||||||
# See all open pull requests of a user on Github
|
# See all open pull requests of a user on Github
|
||||||
url::open 'https://github.com/pulls?&q=author:<user>+is:open+is:pr'
|
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}'
|
$ branch: git branch | awk '{print $NF}'
|
||||||
|
Loading…
Reference in New Issue
Block a user