An Interest In:
Web News this Week
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
- March 26, 2024
April 20, 2021 04:59 pm GMT
Original Link: https://dev.to/ra101/new-bash-alias-git-out-2603
New Bash Alias: Git Out
Up until now, we only had git commit
and git push
. But what about git out
? If you know what it feels like to be left out, you should empathize with this command. Even though it is a part of this legendary trio, it is never actually used.
But not today, Not anymore!
Let's right the wrongs of this society!
So, if you are with me!
Open Your .bashrc
File!
nano ~/.bashrc
Add This Line! & Save it! (ctrl+x, y, return)
git() { if [[ $@ == "out" ]]; then command "exit"; else command git "$@"; fi; }
And Finally! Source it!
source ~/.bashrc
Good job! Be Proud! Because of you, there is one less lonely command.
PS: Feel free to share any meme command out there.
Original Link: https://dev.to/ra101/new-bash-alias-git-out-2603
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To