I think the best approach is to add the alias in .gitconfig instead of adding them in .bashrc or .zshrc, as Dave mentioned.
I am also using legit for the frequent operations, like pull, push, checkout etc.
yeah, Uncoupling git aliases from the shell environment is a better way to go, thanks for the feedback.
I will check out your aliases :)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.