Skip to content
Snippets Groups Projects
Commit 595392b5 authored by nimrod's avatar nimrod
Browse files

- Added update-requirements Git alias (same as the update-requirements shell...

- Added update-requirements Git alias (same as the update-requirements shell alias but also commits the changed files.)
parent c93e90a0
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
tag-version = !git tag -af "v$(cat VERSION)" tag-version = !git tag -af "v$(cat VERSION)"
tracking = rev-parse --abbrev-ref --symbolic-full-name @{upstream} tracking = rev-parse --abbrev-ref --symbolic-full-name @{upstream}
trigger = !git commit --allow-empty --no-edit --amend && git push --force-with-lease trigger = !git commit --allow-empty --no-edit --amend && git push --force-with-lease
update-requirements = !git stash save -a -u -q && ( git ls-files '*requirements*.txt' | xargs pur -r ) && ( git commit -a -m '- Updated requirements.' || echo 'No requirements updated.' ) && git stash pop
[color] [color]
grep = true grep = true
[core] [core]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment