#N/A: Add rule for git commit that reverts previous commit (#886)
This commit is contained in:
committed by
Vladimir Iakovlev
parent
2d81166213
commit
1208faaabb
@@ -0,0 +1,11 @@
|
||||
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~'
|
||||
Reference in New Issue
Block a user