Creating aliases to execute Git commands more effectively.
Last week, I discussed with a friend how we can create simple aliases in Git Bash to make executing Git commands faster and easier. I use Visual Studio Code on my Windows machine, and the default terminal in it is Git Bash.

To start, I opened my user directory by pressing Win+R and typing %USERPROFILE%.
Next, I created a .bashrc file and added the following lines:
After saving the file, I closed the Git Bash terminal in VSCode and reopened it. Now, when I run the alias command, I can see all the aliases listed. If I ever forget an alias, I can simply execute alias to view them.
Now I can execute an alias like gaa in Git Bash, which runs the command I defined in my .bashrc file (git add --all), making it easy to stage all changes in the repository.