Skip to content
Snippets Groups Projects
Commit 715ddea2 authored by nimrod's avatar nimrod
Browse files

pre-commit git alias.

Runs pre-commit on the changed files.
parent 17b15497
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
merg = merge --no-edit merg = merge --no-edit
pop = stash pop pop = stash pop
posh = push --set-upstream origin HEAD posh = push --set-upstream origin HEAD
pre-commit = !git diff --name-only | xargs -r pre-commit run --files
Pull = pull --progress --ff --tags Pull = pull --progress --ff --tags
pull-force = !git fetch && git reset --hard "$(git tracking)" pull-force = !git fetch && git reset --hard "$(git tracking)"
pushes = !git remote | xargs -n1 git push pushes = !git remote | xargs -n1 git push
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment