cherry-picking commit - is commit a snapshot or patch?
问题 I have a question related to cherry-picking commits and conflicts. The 'Pro Git' book explains that commits are kind of snapshots and not patches/diffs. But cherry-picking commit may behave as it was a patch. Example below, in short: create 3 commits, each time edit first (and single) line of the file reset the branch to first commit test1 : try to cherry-pick third commit (conflict) test 2: try to cherry-pick second commit (OK) mkdir gitlearn cd gitlearn touch file git init Initialized empty