this post was submitted on 21 Jun 2023
7 points (100.0% liked)
Git
2910 readers
1 users here now
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
Resources
Rules
- Follow programming.dev rules
- Be excellent to each other, no hostility towards users for any reason
- No spam of tools/companies/advertisements. It’s OK to post your own stuff part of the time, but the primary use of the community should not be self-promotion.
Git Logo by Jason Long is licensed under the Creative Commons Attribution 3.0 Unported License.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
git config --global alias.git '!git'
Now if you dogit git status
by mistake you won't get an error lol. I believe this is the most universally useful and unopinionated alias.The
!
makes it treat it as a shell command instead of a git command. Then because it is git it just basically runs the remainder as a git command lol.Love it. I might also do
igt
(as inid-jit
), which is what I call myself when I typo that.And
gti
. Apparently one cannotpush
a Golf GTI from command line.Would you commit a car?!?!
I don't think so. One would need to download it first.
You can't stop me!