what are the most common git mistakes you make that mess up your repository and are annoying to recover from?

(only interested in mistakes you personally have made, not mistakes you see other people making)

Follow

@b0rk

Forgetting to add new source files before committing/pushing and then temporarily not having access to the machine where I wrote them. (I'm trying to get better with setting up gitignores so this is more obvious when committing.)

Interrupting git during a submodule update --init which can leave repos with a branch checked out but all files missing.

git add external/repo/
when I mean
git add external/repo
The first one adds all the files in the repo, the second makes a submodule.

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!