137 questions
1 vote
1 answer
101 views
Why is my git `commit-msg` hook not receiving commit message arg and failing? [closed]
I have a git hook commit-msg that checks the format of the commit message and rejects it if it is incorrect. The hook was working fine until recently (and was not modified recently). But now whenever ...
0 votes
1 answer
3k views
Where did the "chore" commit come from? [closed]
In Semantic Commit Messages and other places there is reference to a "chore" type of commit. That gist links to various sources, of which only https://karma-runner.github.io/0.10/dev/git-...
0 votes
1 answer
882 views
How to commit without message in Git?
I know that GitHub highly recommends to use messages BUT I work on semi-public projects with my brother and we are working in the same room so obviously we don't need any comments to our commitments. ...
0 votes
1 answer
161 views
Extracting Revision numbers in svn
I am trying to create a pipeline on jenkins which takes the code from a svn repository , builds it (using MSBuild) , tests it , creates a package from the build artifacts (using Maven) and then ...
1 vote
1 answer
2k views
On bitbucket, is there a way to edit the commit message for squashing and merging into the develop branch?
I have made a few commits in the feature branch. Then I used squash to combine all the commits, and merged back to the develop branch. However, I want to edit the commit message (on BitBucket) since ...
6 votes
1 answer
1k views
Should I write the reasoning in the commit message or an inline comment?
I've often heard that the commit message should describe why I'm making these changes. And I think I agree with that. However, I've also often heard that inline comments (i.e. comments in the source ...
3 votes
1 answer
854 views
why not to use passive voice in commit?
I am not a native English speaker. I have a question about the commit message. I would like to use passive voice in some situations. I think it is reasonable enough to use passive voice in some commit....
0 votes
1 answer
354 views
Git get file list in prepare-commit-msg hook
I want to write a hook that prepares a commit message based on the paths of the changed files. Is it possible to get such a file list at that stage? I checked the githooks manual entry, but it is ...