If the file doesn’t exist yet, you can create it instantly from your terminal. 1. Create the File Open your Bash terminal and run: touch ~/.bashrc Use code with caution. 2. Open for Editing
Git Bash often looks for .bash_profile first. If .bashrc isn't loading, create a file named ~/.bash_profile and add this exact piece of code to "source" (load) your bashrc: if [ -f ~/.bashrc ]; then . ~/.bashrc fi Use code with caution. Copied to clipboard
alias gs='git status' alias ga='git add .' alias gc='git commit -m' alias gp='git push'
But Bash is just… nicer.
💡 After editing your .bashrc , you don't need to restart the terminal. Just run source ~/.bashrc to apply the changes immediately.
If the file doesn’t exist yet, you can create it instantly from your terminal. 1. Create the File Open your Bash terminal and run: touch ~/.bashrc Use code with caution. 2. Open for Editing
Git Bash often looks for .bash_profile first. If .bashrc isn't loading, create a file named ~/.bash_profile and add this exact piece of code to "source" (load) your bashrc: if [ -f ~/.bashrc ]; then . ~/.bashrc fi Use code with caution. Copied to clipboard windows bashrc
alias gs='git status' alias ga='git add .' alias gc='git commit -m' alias gp='git push' If the file doesn’t exist yet, you can
But Bash is just… nicer.
💡 After editing your .bashrc , you don't need to restart the terminal. Just run source ~/.bashrc to apply the changes immediately. If the file doesn’t exist yet
로그인하여 계속하세요.