Why does the “checkout wizard” take longer than the “checkout feature-branch”?

I just noticed, sometimes when switching between master and feature-branch, even when everything is already pulled / pressed + updated ...

If i do

git checkout featureBranch

it is instant (and no progress information).

But when I do

git checkout master

It takes more time and you will also receive progress information:

Checking out files: 100% (312/312), done.

And this behavior is repeated even when I just switch back and forth several times.

Just curious. What is the main implementation-detail (?) That causes this?

+4
source share
1 answer

- torek ( ), git , , , , . , .


- , , ( " " ), git master , .

. , git . , ,

A --- B --- C <--(master)
             \
              D <--(feature)

D " " ; , " diff" . feature - ; . , git .

C " " , "diff from newer-version of-file" . , , , . , master develop, develop , master . , - , .

. , master, , , LFS ( , ). , , . , , " ", , , .


2 - - master - . ,

git checkout master
git branch featureOldMasterBranch
git checkout featureBranch
git branch -f master

, master , featureOldMasterBranch , .

, - , , , - , .. - , - - master.

+2

Source: https://habr.com/ru/post/1678349/


All Articles