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.
- Go to
C:\Users\{username}
folder and create.bashrc
file if you don't have. - Run your text editor as an administrator and open the
.bashrc
file. - Write your aliases and save the file.
- 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! 🎉
Md Obydullah
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.