Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block git commit -a. #63

Open
bigeasy opened this issue Sep 6, 2019 · 0 comments
Open

Block git commit -a. #63

bigeasy opened this issue Sep 6, 2019 · 0 comments

Comments

@bigeasy
Copy link

bigeasy commented Sep 6, 2019

Add a pre-commit hook to prevent git commit -a and insist that you actually stage everything you want to commit before you commit it. You're trying to have better coding practices. git commit -a means you're often carefully crafting a commit message to close a specific GitHub issue and them you Hoover up a bunch of additional cruft and push to GitHub closing the issue.

@bigeasy bigeasy added this to the Present and Correct milestone Sep 6, 2019
@bigeasy bigeasy self-assigned this Sep 6, 2019
@bigeasy bigeasy added this to Backlog in Minimal `~/.dotfiles`. via automation Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant