salcode / salcode-git

My Git configuration.
MIT License
3 stars 1 forks source link

Do we need to add GIT_PREFIX to any aliases? #36

Open salcode opened 1 month ago

salcode commented 1 month ago

Git aliases that run an external command are run from the repository root

We can cd into where the alias was run with

cd ${GIT_PREFIX:-./};

Would it be helpful to add this to any of the aliases we have?

See https://til.codeinthehole.com/posts/that-git-aliases-that-run-an-external-command-are-run-from-the-repository-root/