git add hogehoge, git commit hogehoge, git push hogehoge....
I only use basic Git commands, but typing them out every time is tedious. To make things easier, I decided to create some aliases.
Script
Command Descriptions
git-b... Check branchesgit-c... Checkoutgit-c-b... Create and checkout a new branchgit-p... Pullgit-set... Add/commit/push interactively. (The English here feels a bit awkward, suggestions welcome!)
Troubleshooting
-
.bashrc is not being loaded
- Check if .bash_profile is loading .bashrc
-
After running alias commands, the backspace (delete) key outputs strange characters
- Keyboard layout is US → Keep
^Hin .bashrc - Keyboard layout is JIS → Change
^Hto^?
- Keyboard layout is US → Keep
Thoughts
- My development efficiency has slightly improved!
- For those who use Git, what do you usually do? Do you create aliases?
Additional Note
I forgot that Git has a built-in alias configuration command called git config.
Improve development efficiency by setting aliases for frequently used Git commands