Three major advanced uses of Git

clone

Before

git clone xxxx.git

after

git clone --recurse-submodules xxxx.git

Difference: The submodules are also cloned synchronously.

Source: https://stackoverflow.com/a/3797061/2193455

pull

git pull origin master

Tape module

git pull --recurse-submodules --jobs=10

merge

git fetch --tags origin
git merge v2.2.88

add

There is no difference;

commit

There is no difference;

push

Before

git push origin master

after

git push origin master --tags

The difference: tags are also pushed up.

Guess you like

Origin blog.csdn.net/kangear/article/details/112977834