diff --git a/thefuck/rules/git_add_no_git.py b/thefuck/rules/git_add_no_git.py new file mode 100644 index 0000000..48dec5e --- /dev/null +++ b/thefuck/rules/git_add_no_git.py @@ -0,0 +1,11 @@ +def match(command): +## + return ( + command.script == "add ." + ) + + + + +def get_new_command(command): + return (command.script.replace("add .","git add .",1))