diff --git a/thefuck/rules/git-checkout-master-no-git b/thefuck/rules/git-checkout-master-no-git new file mode 100644 index 0000000..394f98e --- /dev/null +++ b/thefuck/rules/git-checkout-master-no-git @@ -0,0 +1,11 @@ +def match(command): + + return ( + command.script == "checkout master" + ) + + + + +def get_new_command(command): + return (command.script.replace("checkout master","git checkout master",1))