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