This commit is contained in:
ryudonghyun123 2023-07-30 18:17:10 -07:00 committed by GitHub
commit cb2893226a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 63 additions and 0 deletions

1
.gitignore vendored
View File

@ -22,6 +22,7 @@ var/
*.egg-info/
.installed.cfg
*.egg
venv/
# PyInstaller
# Usually these files are written by a python script from a template

View File

@ -348,6 +348,7 @@ following rules are enabled by default:
* `yarn_command_not_found` – fixes misspelled `yarn` commands;
* `yarn_command_replaced` – fixes replaced `yarn` commands;
* `yarn_help` – makes it easier to open `yarn` documentation;
* `git_merge_mistake` – fixes slash mistake in git merge;
##### [Back to Contents](#contents)

View File

@ -0,0 +1,11 @@
def match(command):
return (
command.script == "checkout master"
)
def get_new_command(command):
return (command.script.replace("checkout master","git checkout master",1))

View File

View File

@ -0,0 +1,11 @@
def match(command):
return (
command.script == "status"
)
def get_new_command(command):
return (command.script.replace("status","git status",1))

View File

@ -0,0 +1,6 @@
def match(command):
return command.script == 'git add -a'
def get_new_command(command):
return 'git add -A'

View File

@ -0,0 +1,6 @@
def match(command):
return command.script == 'add'
def get_new_command(command):
return 'git add -A'

View File

@ -0,0 +1,11 @@
def match(command):
return (
command.script == "init"
)
def get_new_command(command):
return (command.script.replace("init","git init",1))

View File

@ -0,0 +1,8 @@
def match(command):
return (
command.script == 'git merge originmain'
)
def get_new_command(command):
return command.script.replace('originmain', 'origin/main', 1)

View File

@ -0,0 +1,8 @@
def match(command):
return (
command.script == "git push origin/main"
)
def get_new_command(command):
return command.script.replace("origin/main", "origin main", 1)