what's your favourite way to simplify your life with git? mostly interested in slightly unusual tricks like:

- never using the stash, just creating temporary branches instead
- deleting your `main` branch so that you can never accidentally commit to it

@b0rk Never use "git reset", instead detach HEAD and move your branch with "git branch -f" before checking it out again. (I think that idea clicked for me as a result of one of your git threads.)

To split a commit, do an interactive rebase and cherry-pick it twice, editing to remove parts of the diff the first time.

Follow

@b0rk Actually, I tend to function with a detached head or on the "wrong" branch a lot, I just move the branches to where I need them after I've committed.

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!