#N/A: Add rule for git commit that reverts previous commit (#886)

This commit is contained in:
Aiden Song
2019-02-25 16:24:16 -06:00
committed by Vladimir Iakovlev
parent 2d81166213
commit 1208faaabb
3 changed files with 37 additions and 0 deletions
+11
View File
@@ -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~'