Replies: 2 comments
-
No, lazygit doesn't have such an option. I'm also not sure why it's needed; what's the problem with committing to a detached head? Lazygit makes it trivially easy to move the commits elsewhere by copy/pasting them, or to create a branch (or tag) on those commits after the fact to keep them around. |
Beta Was this translation helpful? Give feedback.
-
Here's what happened: not realising I was at a detached head I had inadvertently made two commits to the detached head and I had some uncommitted changes in the working directory. Here's how I moved the commits to the
This workflow may be unnecessarily complicated, but I'm not a Git expert (which is one the reasons I love Lazygit), so I had to go and find how to do this. It all took time. My point is that this would have all been unnecessary had I got the same warning that Git issues when you attempt to commit to a detached head. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a configuration option to ensure you get a warning before committing to a detached head? On a couple of occasions I have inadvertently made commits to a detached head, it would have been nice to get a warn (as Git does).
Beta Was this translation helpful? Give feedback.
All reactions