É possível fazer um git merge, mas sem um commit?
"man git merge" diz o seguinte:
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.
Mas quando tento usá git merge- --no-commitlo, ele ainda é confirmado automaticamente. Aqui está o que eu fiz:
$> ~/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)
Um subsequente git logrevela todas as confirmações da ramificação v1.0 mescladas no mestre.