You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But my git status is back to untracked changes in files.
I usually "solve" this by continue to git-add and commit till my git is all clean post the pre-commit hook.
I guess my primary question is if this is intentional behaviour?
If so, could multiple people working on the same project face merge issues because there's untracked changes after the hook I might be unaware of? (I wouldn't have bothered with a git status after committing if I didn't have the zsh indicator.)
The text was updated successfully, but these errors were encountered:
After I moved us from husky to lefthook for git hooks, apparently the behaviour is different. Lefthook doesn't automatically add changed files to the last commit: evilmartians/lefthook#64
I see a few scattered solutions, so will need to test one and then will add here.
I've had this issue with a couple projects.
The sequence of events goes something like:
git add .
I usually "solve" this by continue to git-add and commit till my git is all clean post the pre-commit hook.
I guess my primary question is if this is intentional behaviour?
If so, could multiple people working on the same project face merge issues because there's untracked changes after the hook I might be unaware of? (I wouldn't have bothered with a git status after committing if I didn't have the zsh indicator.)
The text was updated successfully, but these errors were encountered: