@b0rk I didn't know "git push" cared about the current branch at all. I always specified a branch to push, which works fine in "detached head state". I never use "git pull" (combining the "fetch" and "merge" steps into one makes me feel unsure about what's going to happen) so I don't know if it's similar.

@madewokherd what does your `git push` command look like?

Follow

@b0rk typically I do something like:
git branch -f main # only if I wasn't on a branch
gitk # to make sure I'm pushing only the commits I intend
git push origin main

@b0rk I work with submodules a lot and unfortunately "git submodule update" leaves the submodules in detached head state, so it's common for me to not be on a branch.

@madewokherd thanks, I see what you're saying. will probably change it

Sign in to participate in the conversation
Computer Fairies

Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!