Be a man.
‘git commit -am “changes”’
At this point just create a script or alias called “fuckthis” that does that and then push direct to main
PR reviews take the most time, eliminating those saved us loads of time.
QA were also bogging us down, axed them too. Now we’re flying.
The Social Security Infrastructure rebuild should be done in a matter of weeks! At least that’s what Copilot says.
That’s how you get a Boing
I have auto save on. A cron job running every minute with just git add . && git commit - m “wip”
&& git push --force
Have the name of the alias be “gti” or “gut”
I have about a dozen aliases of various mistypings of “git”. Somehow I still hit unaliased typo once in a while
alias {gti,gut}='git commit -am "changes" && git push -f'
And any project worth their salt will reject it for two reasons:
- Unclear message/changes (potentially too many changes at once)
- Not signed
I’ve got signing auto enabled though
Doesn’t work for me idk why, it’ll ignore the message, and i have to commit again before i can push
I like
git add
because then you can dogit diff --staged
Yes yes, combined with
git add -P
makes small, meaningful commits so much easier.Check out magit!
Alas I sold my soul to VSCode a long time ago.
Also, ew, emacs 😝
Oh come on, try it out! I know some people who use emacs only for magit. It really is that good.
A few of them slowly became full on emacs users…
I set this up for seamless commits:
function gao() { git add . git commit -a -m "$*" git push origin `git rev-parse --abbrev-ref HEAD` }
Usage: gao fixing a typo
grow up, use “git add -p” and craft perfect artisanal commits
Every bloody time, though this case the people not on the Ryanair flight may be the lucky ones. If only git was the most unnecessarily arcane thing devs have to/choose to work with.
… What’s
git merge
look like?Tenerife incident.
… incident
I specifically have a oh-shit alias for this kind of stuff lol: https://code.wedotstud.io/patrick/dotfiles/src/commit/c2f93629fe27d1747ceb22b4d6442840d109aa99/.gitconfig#L28
Real 10x vibe developers use https://jj-vcs.github.io/jj/latest/, no need to add or commit!
So is easier to push direct to prod? Hell yeah!
With jj you’re always the prod whatever you do! Feel free to break that fucking CI.
Gonna try it out non my next college project
You may or may not be joking, but jujutsu is the first true git alternative that I’m actively trying on small projects at work. The command-line is great, and I can still interact with other devs without breaking stuff.
Buuuuuuuut if you’re a CS student, don’t bother, it’s weird and you should focus on git which is used everywhere. You can get free GUI clients like Sublime Merge or SmartGit to ease the pain. I’ve been hating git since the beginning, but it’s the least worst SCM right now. Learn the command-line, but I have never done that since it’s infuriating, and that’s why I’ve been using GUIs since, holy shit, Wikipedia says 2005.
Is just half a joke, i do like to try it out a lot of different things, be whatever it may be, so i’m totally finding a project to use this, and also i don’t really like to use a GUI for git simce most of my workflow happens in a terminal, and even tho i do like how git works i am open to try something new and see if it’s better for me or not
Try Mercurial too. Both projects started at the same time but git won. Mercurial is equivalent but its interesting.
Sure, thanks for the recomendation
i’m sure there are much better tools available, but i’m just used to git gui where rescan, commit and push all are in order.
Use Jujutsu
jj
and you won’t have this problemlazygit
is pretty cool too.Jujutsu time 😁