I like using s for status, o for pull origin, po for push origin and a few other short ones.
However, there was no point in git aliases for me if I didn't alias git as simply g in ~/.bashrc or .~/profile
g s g bd (branch -d) g b g co g c (commit -m) g m (merge)
I try to read the letters in my head as the full command so I remember the commands elsewhere.
In my ~/.bashrc is included:
~/.bashrc
alias gita='git add' alias gitb='git branch' alias gitc='git checkout' alias gitm='git merge' alias gitr='git rebase' alias gits='git status'
This is nice too. Surely there are lots of ways to do this. Thanks for sharing.
That's a nice touch. Didn't thought of that before. Thanks for sharing.
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 like using s for status, o for pull origin, po for push origin and a few other short ones.
However, there was no point in git aliases for me if I didn't alias git as simply g in ~/.bashrc or .~/profile
g s
g bd (branch -d)
g b
g co
g c (commit -m)
g m (merge)
I try to read the letters in my head as the full command so I remember the commands elsewhere.
In my
~/.bashrc
is included:This is nice too. Surely there are lots of ways to do this. Thanks for sharing.
That's a nice touch. Didn't thought of that before. Thanks for sharing.