diff --git a/thefuck/rules/git-checkout-master-no-git b/thefuck/rules/git-checkout-master-no-git.py similarity index 100% rename from thefuck/rules/git-checkout-master-no-git rename to thefuck/rules/git-checkout-master-no-git.py diff --git a/thefuck/rules/git-commit-no-git.py b/thefuck/rules/git-commit-no-git.py index e69de29..d47d24f 100644 --- a/thefuck/rules/git-commit-no-git.py +++ b/thefuck/rules/git-commit-no-git.py @@ -0,0 +1,11 @@ +def match(command): + + return ( + command.script == "commit" + ) + + + + +def get_new_command(command): + return (command.script.replace("commit","git commit",1))