If you are using Git Bash on Windows and you're used to Linux bash commands, chances are that you'd like to add aliases that help making your jobs ...
For further actions, you may consider blocking this person and/or reporting abuse
thanks for this.
a little thing to note is this works while navigating in bash
cd /c/'Program Files'/Git/etc/profile.d
not
cd /c/Program Files/Git/etc/profile.d as this one won't work in bash
also to note: my
git
installation was in theAppData
folder, so my path looked like this:Note: place the equal sign ('=') immediately after the alias without any spaces.
Examples:
alias k = 'kubectl' // not working
alias k= 'kubectl' // working
Dude, you're a lifesaver.
Tired of typing git add . && git commit -m "msg" && git push every time?
I made a gitupdate() Bash function that does it all — with colours & a spinner.
-Stage
-Commit
-Push
One line in Git Bash.
gitupdate "commit message" [branch]
I always use
ll
withthanks a lot.
also worked multi-line alias like this:
Tks, dude! It really helped me 😁
Thank you. That is a great help :)
Exactly what I was looking for, thanks!!
thanks for this, my workflow thanks you ❤️
Great little bit of advice! Totally worked for me. Thank you. :D
Aliases can be created using git config command as well, without actually opening the git files.
so helpful, thanks