97 Replies
š
https://ohshitgit.com/
ah gotcha you saw
š
no matter what i type, that's the response i get
i like how you just decided to yeet things š
I googled a bit, they all said yeet and repeat
yea idk š® I'm a noob with git too xD
what did you do before? hah
I mean what do you think you did to break it
Literally nothing :/ I made some changes to my vs code yesterday but i didn't commit them, I just saved the files as I wasn't ready to commit. Log on today, continue editing, finally got to a point of commiting so did my usual "git status" to check, and then got the above
can you
git log
and now the v2 portfolio isn't recognizing my src folder š¤£ what a fooking day..
anyway it seems the way to fix that is to reset the head, which I tried, didn't work. I then uninstalled and reinstalled git, didn't work
nope, "bad object head"
I mean I've already setup a new github repo and copied the code over, just gotta figure out why the fudging thing isn't recognizing my components and we're gucci
https://stackoverflow.com/a/50675088 <-- have you tried this?
Stack Overflow
git status shows fatal: bad object HEAD
I have a problem with git on Windows Azure. Git status shows - "fatal: bad object HEAD" and I tried running:
git fsck --full
git gc
But git fsck shows:
broken link from commit
git init
then git fetch
then git status
?just did it now, it let me do it all, but eventually git status gave the same result
or any of the next answers?
git remote set-head origin --auto
?
and then git gc
?or a simple
git fetch origin
?that's a whole lotta shit š
so, something went bad bad bad
is it in an hdd?
yea I was about to say something to that effect too
seems odd
considering it happened twice, im getting very suspicious
it be in here
wait, are you using smb to edit the files?
and do all the git stuff?
any terminal stuff im doing is in vsc in a bash terminal
how are you connecting to the vm?
it's just WSL
with the wsl extension?
um, not sure if I use an extension? I have the WSL terminal on my windows, I open that, I locate my project folders which is usually , I open VSC and I crack on
bottom left corner
how does it look like?
hes asking if VSC is setup for WSL proper
I guess more accurately its "\wsl.localhost\Ubuntu\home\laing91\code"
oh
yes that
yes, he's using the right extension
I'd hope so, b1 helped me set it up like 2 years ago š
i've seen people do the weirdest stuff
damn I've reinstalled like 3 times since then
xD
is your pc running on an hdd?
aside from this balls up, why is my new project not accepting my damn components lmao
i have a hdd and an ssd
i believe my system runs on the hdd, and everything else on the ssd for the most part
(I may need to check that, it's been a few years)
so, the hdd is the c drive?
you can see it by going to "this pc"
right-click on c
and it should have something there
oof you really should format and get your OS on that SSD
im asking this because it's VERY VERY suspicious that this happened twice to you
how old is the ssd?
uhh about 2 years I'd say, it was what I added in when I replaced the mobo, gpu, psu, ram
have you tried to do a filesystem check on your vm?
tbh I should just use my damn laptop to code, it has a 2TB samsung SSD... the pc has a 256gb SSD nad a 512gb HHD š
256gb is very small
I've never moved data from an SSD to another, or I'd buy a 2TB SSD on the pc and move it all over
if you have a 2nd nvme slot, then you can move the 256gb there, put the 2tb where the 256gb used to be and do a clone
then remove the 256gb ssd and reboot
then set the boot drive and place the old ssd back and bam!
tbh there's not a huge amount I have on here that I can't just re-install, the only thing I'd wanna keep is my vscode/wsl configs lol
fresh install sounds like a good idea
ANYWAY
i wouldn't go nuclear yet
since the initial project is bricked... any idea why this is for some reason bricking too?
Did you pnmp i
yep
"already up to date"
Restart
rw
> rw
oo... it just got a bit buggy then eh
Language servers and that crap are weird
my god im so bad at systems, i need to take an evening course or someting lmao
well it removed the errors, but now npm run dev literally shows me nothing
gota figure that out now
INTERESTING... it's bricking because it's now svelte 5?
ya looks like you have dependencies issue now xD
I mean... just... blegh.
There's barely any JS in the project, it's 99% html/css, not sure why there's a dependancy break, unless there's some syntax updates on import
have you tried to do what the error message says?
Trying, it seems to be in here, so it's a vite config issue, perhaps?
(I should have just made this in sveltekit, tbh)
yes yes you should
npx sv create
šill do that now, see if it still bricks
if it does, im done. š
Bruh... I'm like.. beyond overwhelmed with this shit, why'd it have to break š anyway can close this I guess
How to deal with fatal: bad object HEAD in git
as a cheapo who uses Apple iCloud (the world's worst (https://www.swyx.io/what-to-do-when-icloud-is-stuck-on-uploading-items) sync service) as a sync service for my Obsidian Second Brain (https://www.swyx.io/obsidian-brain), I have recently run into this issue a lot:
You have no idea how fucking relieved I am, I was about a minute away from relocating to zimbabwe and living on ants
that is interesting
Don't use syncing in your dev env it never goes well
Glad you got it sorted
what dya mean?
(its 2am)
wait a fucking minute
I'm pushing changes on git but it's not updating my github š
check if the origin url is set
I think I accidentally created a branch?
it's possible
man I'm confused
you can create a local branch
this'll be it
that is a mess
also, why are you using the console to do git work instead of vscode's ui?
Likely caused when it "broke" earlier and I was mashing commands to get it fixed
huh, the ui?
yes, the ui
I have a feeling it's still borked, hmm
it's possible
1 of these has a fatal error on it still
you should sleep
I mean Swyx starts the article making it sound like iCloud syncing is the issue? or maybe I'm mistaken. But I've heard other people having same issue with anyone of them like OneDrive (but it shouldn't be doing WSL so idk how that is your issue)
š¤·āāļø
not that I'm aware of mate, I haven't done any syncing manually anyway
weird, it's now working? not sure what happened, kinda weird... https://callum-laing.com/
guess I'm learning how to fix broken git shit lol
growing pains its teh way
anyway it works, happy days, now I can sleep
thanks for the assistance gents!
You did all the work ! gj gn
if i were you, i would make a branch and work on that branch