Oh Shit, Git
11–20 of 237 posts
Re: Oh Shit, Git
#12Re: Oh Shit, Git
#13Just delete the directory and clone it again.
Re: Oh Shit, Git
#14> This usually happens to me if I commit, then run tests/linters... and FML, I didn't put a space after an equals sign This is why it's good to put the linting in a git hook on commit or stage, so you literally can't commit without being formatted correctedly.
Also, unless you jump through a lot of hoops, linters generally run against what's on-disk instead of what's actually going into the commit. So checks that run at commit time discourage partial adds.
Re: Oh Shit, Git
#15The bramble stems and branches are the commit history (which may join and well as split, unlike a bramble). The labels are stuck to particular bits of the bramble. Some labels are even stuck to other labels!
You can move the labels around, and you can glue extra bits of bramble to the tips of what you have. You can even hack about with the bramble, but this is not recommended. Label moving often happens automatically, e.g. when 'growing' a bramble tip.
It gets interesting when you compare two brambles (e.g. remote and local repos). You might determine that one bramble is identical to another, just with the labels moved. Or one bramble is the same as the other but with extra stems added. Or both brambles had a common ancestor bramble, but now they both have extra stems. Or perhaps they are completely irreconcilable.
Better visualisation tooling would help.
Re: Oh Shit, Git
#16Re: Oh Shit, Git
#17Git is a reminder why even the best minds in software development sometimes really should talk to UX/UI people.
It dominated the world despite the UX flaws, which suggests they really aren't that bad.
Re: Oh Shit, Git
#18Just delete the directory and clone it again.
Re: Oh Shit, Git
#19For someone to get out of a mess they would have to know that they caused a mess in the first place! I'm starting to think trying to get people to use rebase and squash is a losing battle when they frequently just merge without pulling.
Re: Oh Shit, Git
#20> This usually happens to me if I commit, then run tests/linters... and FML, I didn't put a space after an equals sign This is why it's good to put the linting in a git hook on commit or stage, so you literally can't commit without being formatted correctedly.