Created Git Shortcut Commands in .bashrc

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 branches
  • git-c ... Checkout
  • git-c-b ... Create and checkout a new branch
  • git-p ... Pull
  • git-set ... Add/commit/push interactively. (The English here feels a bit awkward, suggestions welcome!)

Troubleshooting

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