Files
thefuck/thefuck/rules/git_commit_reset.py
T

12 lines
200 B
Python

from thefuck.specific.git import git_support
@git_support
def match(command):
return ('commit' in command.script_parts)
@git_support
def get_new_command(command):
return 'git reset HEAD~'