默认情况下没有快进的 Git merge

标签 git merge

<分区>

Possible Duplicate:
Can I make fast forwarding be off by default in git?

有什么方法可以让 git 在默认情况下不进行快进 merge 吗?当我完成一个功能并将我的功能分支 merge 回主线时,我总是忘记添加 --no-ff。

最佳答案

是的。使用 git 配置设置 merge.ff。 ( http://schacon.github.com/git/git-config.html )

git config merge.ff false

关于默认情况下没有快进的 Git merge ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10234369/

相关文章:

python - 合并不同长度的数据帧

git - .git/config 和 .gitmodules 不同步

ruby-on-rails - 如何解决heroku "You are trying to install in deployment mode after changing your Gemfile"错误?

windows - Git Bash 无法解析 %userprofile%

Git 从另一个存储库中 pull 出一个分支?

python - 按列组合 CSV 文件

c++ - 重复过滤列表 - 列表去重

git checkout 从之前的分支 : pathspec did not match any file(s) known to git 恢复文件

linux - 连接字符串之间的行 - bash

git - 如何将开发分支 merge 到master中并忽略master中的更改?