The problem is that uncommited files in the repo isnt unusual, often people have test files or logs, that you dont want to commit.
I personally use git gui, which will show all the files that arent committed, so that may be a solution for you.
The problem is that uncommited files in the repo isnt unusual, often people have test files or logs, that you dont want to commit.
I personally use git gui, which will show all the files that arent committed, so that may be a solution for you.
Add a prepush hook that checks if git status is clean (or some other gir command that lists uncommitted files). If it is, either fail straight away of make the hook interactive and ask whether it's ok or something.
Maybe https://pre-commit.com/ has something already.
all 7 comments