Add git_merge_unrelated rule for git merge --allow-unrelated-histories (#773)

From https://git-scm.com/docs/merge-options#merge-options---allow-unrelated-histories

> By default, `git merge` command refuses to merge histories that do not
share a common ancestor. This option can be used to override this safety
when merging histories of two projects that started their lives
independently.
This commit is contained in:
Joseph Frazier
2018-01-16 20:03:56 -05:00
committed by GitHub
parent aa45585601
commit 027b41da59
3 changed files with 38 additions and 0 deletions
+1
View File
@@ -200,6 +200,7 @@ using the matched rule and runs it. Rules enabled by default are as follows:
* `git_flag_after_filename` – fixes `fatal: bad flag '...' after filename`
* `git_help_aliased` &ndash; fixes `git help <alias>` commands replacing <alias> with the aliased command;
* `git_merge` &ndash; adds remote to branch names;
* `git_merge_unrelated` &ndash; adds `--allow-unrelated-histories` when required
* `git_not_command` &ndash; fixes wrong git commands like `git brnch`;
* `git_pull` &ndash; sets upstream before executing previous `git pull`;
* `git_pull_clone` &ndash; clones instead of pulling when the repo does not exist;