Git merge без автокоммита

Можно ли сделать git merge, но без фиксации?

"man git merge" говорит следующее:

With --no-commit perform the merge but pretend the merge failed and do not autocommit,
to give the user a chance to inspect and further tweak the merge result before
committing.

Но когда я пытаюсь использовать git merge с --no-commit, он все равно автофиксируется. Вот что я сделал:

$> ~/git/testrepo$ git checkout master
Switched to branch 'master'

$> ~/git/testrepo$ git branch
* master
  v1.0

$> ~/git/testrepo$ git merge --no-commit v1.0
Updating c0c9fd2..18fa02c
Fast-forward
 file1 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

$> ~/git/testrepo$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
nothing to commit (working directory clean)

Последующий git log показывает все коммиты из ветки v1.0, слитой в master.

349
задан Peter Mortensen 18 June 2018 в 17:12
поделиться