Put this in $HOME/.gitconfig:
[merge]
ff = no
commit = no
You can use git-config to do this:
git config --global merge.commit no
git config --global merge.ff no
More Related Contents:
- How to replace master branch in Git, entirely, from another branch? [duplicate]
- How do you merge two Git repositories?
- How to merge a specific commit in Git
- Git cherry pick and datamodel integrity
- How can I prevent foxtrot merges in my ‘master’ branch?
- Updates were rejected because the remote contains work that you do not have locally
- Is it possible for git-merge to ignore line-ending differences?
- Merging: Hg/Git vs. SVN
- What is the precise meaning of “ours” and “theirs” in git?
- git cherry-pick says “…38c74d is a merge but no -m option was given”
- Git – Ignore files during merge
- `git merge -s theirs` needed but it does not exist
- Git Cherry-pick vs Merge Workflow
- Trying To Understand/Determine A Basic Git Workflow
- Pull a certain branch from the remote server
- git rebase and git push: non-fast forward, why use?
- Disable Git Rename Detection
- git partial merge, not whole branch
- Simple tool to ‘accept theirs’ or ‘accept mine’ on a whole file using git
- How can I get the parents of a merge commit in Git?
- How to merge two branches without a common ancestor?
- How would I write a pre-merge hook in Git?
- Are there any downsides to enabling git rerere?
- Reverting a git merge while allowing for the same merge later)
- git: merge two branches: what direction?
- Git: How to create patches for a merge?
- git: How do I add a custom merge strategy?
- Git merge squash repeatedly
- git merging branches in a bare repository
- The following untracked working tree files would be overwritten by merge, but I don’t care