I think the best approach is to add the alias in .gitconfig instead of adding them in .bashrc or .zshrc, as Dave mentioned.
.gitconfig
.bashrc
.zshrc
I am also using legit for the frequent operations, like pull, push, checkout etc.
legit
pull
push
checkout
github.com/frostming/legit
yeah, Uncoupling git aliases from the shell environment is a better way to go, thanks for the feedback. I will check out your aliases :)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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, likepull
,push
,checkout
etc.github.com/frostming/legit
yeah, Uncoupling git aliases from the shell environment is a better way to go, thanks for the feedback.
I will check out your aliases :)