I have a question for more experienced developers. Why does Git sometimes arbitrarily add HEAD >>>>>>>>>> into my files not allowing Meet a pull, a new version of LNbits, for instance.

Making it so I have to go into these files, delete the fucking head comments, save it, and then pray to God that I can fucking pull the nrw version again When I haven't touched any of these files, there's probably something that I'm missing, but I genuinely don't understand it.

I just wanted to update my version of LNbits and now I have to fix all this merge conflict shit.

#asknostr

Reply to this note

Please Login to reply.

Discussion

This happens when you do a git pull from a remote branch?

Yeah. Specifically, I wanted to update my lnbits instance and when I did a git pull, it said it failed to merge because there was a bunch of changes. When I know for a fact, I haven't touched any of these files It's claiming have merge conflicts.

Is it because I forgot to "git stash" before a pull?

Stash is only needed if you have staged changes you want to apply on top of the remote branch changes.

I believe LNBits maybe did some force pushes onto the main/master branch semi-recently that removed past commits. Possible your local branch had merge conflicts with the remote changes. I can’t remember when/where I heard that info about LNBits repo. I also don’t remember off hand how to do a git pull and overwrite the entire local branch.

Ok thanks ill see if i can Figure out how to do that. Thanks for pushing me in the correct direction.

Found it

Baller that fixed it for me. Much thanks!

I tried zapping you for the help but your Lnurl seems to be down.

Thanks for letting me know. Should be fixed now. I accidentally updated the wrong ln address today. because Primal changed it to a custodial address without asking... So annoying when Nostr clients update your profile info (like ln address) without asking.

Lmao yup.

You said you’re not making changes between pulls? If you are, you need to stash before you pull.

The only thing I changed was an environment file.

When i do a reset to head, stash, and try to pull again it says i need to fix merge conflitcs.

Merge conflicts.

This happens if you have modified files and then try to pull the latest changes on top of the modified files.