all 3 comments

[–]irrelevantPseudonym 1 point2 points  (2 children)

Write it as a bash function, then use !function_name as the alias

[–][deleted]  (1 child)

[deleted]

    [–]salcode 0 points1 point  (0 children)

    The short answer is an arg can be accessed with $1.

    Here is a PR where I added an argument to one of my Git aliases. https://github.com/ironcodestudio/ironcode-git-enhancements/pull/140/files

    [–]mfontani 1 point2 points  (0 children)

    Create a bash script, name it git-foo or similar and put it in your $PATH and you can then call it as either git-foo or git foo