Add Git Bash Alias on Windows

If you use Git Bash on Windows and are familiar with Linux bash commands, you may want to create helpful aliases.

Add Alias

  1. Go to C:\Users\{username} folder and create .bashrc file if you don't have.
  2. Run your text editor as an administrator and open the .bashrc file.
  3. Write your aliases and save the file.
  4. Open the Git Bash and run alias command.
alias cf='ls -1 | wc -l' # count files
alias cll='clear; ls -lah'
alias ga='git add .'
alias gc='git commit -m'

Enjoy! 🎉


Software Engineer | Ethical Hacker & Cybersecurity...

Md Obydullah is a software engineer and full stack developer specialist at Laravel, Django, Vue.js, Node.js, Android, Linux Server, and Ethichal Hacking.