Git pull

  git pull

默认情况下, 操作会把远程仓库的所有最新数据更新到本地,如果只更新某一个分支可以使用,例如:

git pull origin master
LOLLICUP@DESKTOP-EF95EEJ MINGW64 /d/www/lollicupStore2 (master)
$ git pull
remote: Enumerating objects: 26, done.
remote: Counting objects: 100% (26/26), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 34 (delta 19), reused 26 (delta 19), pack-reused 8
Unpacking objects: 100% (34/34), done.
From https://github.com/lollicupusa/lollicupStore2
   8773e624..fa2bd09f  aaron      -> origin/aaron
 + 0d8f5de3...6f43d5c0 sort       -> origin/sort  (forced update)
Already up to date.

LOLLICUP@DESKTOP-EF95EEJ MINGW64 /d/www/lollicupStore2 (master)
$ clear

LOLLICUP@DESKTOP-EF95EEJ MINGW64 /d/www/lollicupStore2 (master)
$ git pull
Already up to date.

LOLLICUP@DESKTOP-EF95EEJ MINGW64 /d/www/lollicupStore2 (master)
$ git pull origin master
From https://github.com/lollicupusa/lollicupStore2
 * branch              master     -> FETCH_HEAD
Already up to date.

1.下面是git pull origin storex 使用案例:

lollicup@DESKTOP-4M99Q31 MINGW64 /d/www/lollicupStore2 (storex)
$ git pull origin storex
remote: Enumerating objects: 174, done.
remote: Counting objects: 100% (174/174), done.
remote: Compressing objects: 100% (87/87), done.
remote: Total 174 (delta 37), reused 172 (delta 36), pack-reused 0
Receiving objects: 100% (174/174), 34.58 MiB | 1.30 MiB/s, done.
Resolving deltas: 100% (37/37), completed with 31 local objects.
From https://github.com/lollicupusa/lollicupStore2
branch storex -> FETCH_HEAD
362e033b..410f029a storex -> origin/storex
Updating 362e033b..410f029a
Fast-forward
.gitignore | 3 +
…/f/1/f1f16ad3-e884-4189-869a-8c8155066b47.jpeg | Bin 0 -> 3350753 bytes
…/2558/19/2/0/2018-sz-logo-nitrogen-ice-cream.ai | 6609 ++++++++++++++++++++
…/2560/19/5/2/520_ice-cream-cup_front.ai | Bin 0 -> 54050 bytes
…/e/1/e11884b6-e6a3-4602-b486-ff31a3c96b2c.jpeg | Bin 0 -> 435909 bytes

2. 下面是git pull 使用案例:

lollicup@DESKTOP-4M99Q31 MINGW64 /d/www/lollicupStore2 (storex)
$ git pull
remote: Enumerating objects: 60, done.
remote: Counting objects: 100% (60/60), done.
remote: Compressing objects: 100% (37/37), done.
remote: Total 60 (delta 18), reused 43 (delta 14), pack-reused 0
Unpacking objects: 100% (60/60), done.
From https://github.com/lollicupusa/lollicupStore2
d7bcaa1a…410f029a aaron -> origin/aaron (forced update)
b4f2fcac..2079083a bill_emailbug -> origin/bill_emailbug
362e033b..410f029a master -> origin/master
6b4242bd..5a6042d8 redesign -> origin/redesign
Already up to date.
lollicup@DESKTOP-4M99Q31 MINGW64 /d/www/lollicupStore2 (storex)

Leave a Reply

您的邮箱地址不会被公开。 必填项已用 * 标注