From the Git Book:
"if the current branch has not deviated from the other - so that every commit present in the current branch is already contained in another - then Git simply does a fast forward"
I am trying to reproduce this scenario, but this does not lead to a quick jump forward:
$ git init
Initialized empty Git repository in /work/fun/git_experiments/.git/
$ echo initial > readme && git add readme && git commit -a -m Created
[master (root-commit) 74495b9] Created
1 files changed, 1 insertions(+), 0 deletions(-)
create mode 100644 readme
$ git branch b1
$ echo modified > readme && git commit -a -m "Modified"
[master d40d5fb] Modified
1 files changed, 1 insertions(+), 1 deletions(-)
$ git checkout b1
Switched to branch 'b1'
$ echo modified > readme && git commit -a -m "Modified"
[ b1 46fd337] Modified
1 files changed, 1 insertions(+), 1 deletions(-)
$ git merge master
Merge made by recursive.
$
source
share