Questions tagged [commit-message]

The message associated with commits in a version control system.

Questions marked with this tag may be:

  • about style/how to write helpful messages
  • related to automated commit hooks (be sure to include a tag for the version control system you're using)

Related Tags

Useful Links

117 questions
25
votes
4 answers

How do I create a SVN Commit Message Template and Hook to Verify

I'm using Visual SVN Server and Tortoise SVN (client) for source control. I would like all developers to standardize on a consistent format for checkin notes. For Example I want their Commit Message to default to... Synopsis: Developer Name:…
Justin
  • 10,107
  • 14
  • 56
  • 76
20
votes
2 answers

Should I remove the list of conflicts in my commit message after doing a manual merge?

Say I run git pull and there is a conflict that git cannot automatically merge. After I manually merge the changes, and run git commit, should I leave the Conflicts: section that git generates in the commit (as a record that those files were…
nfm
  • 17,148
  • 13
  • 57
  • 88
14
votes
4 answers

JIRA code validation commit hook for 'git'

Does anyone have a git commit hook I can use that will ensure a JIRA issue number appears in the checkin message? I've got no experience driving JIRA from a git commit hook so any help would be appreciated -- working source even more so!
Andrew
  • 11,520
  • 12
  • 65
  • 82
13
votes
2 answers

How to write git commit messages for submodule updates?

I always struggle to write good git commit messages for commits which did nothing except update which commit a submodule is on. What I really want to write is "just read the freaking submodule commit messages!" Perhaps a slightly nicer solution is,…
marius
  • 1,090
  • 9
  • 26
9
votes
3 answers

Tagging commit messages and changesets

I am searching for a solution, to tag changesets in commit messages. For me a "tag" is something like: code clean up user visible change modifies database structure (ALTER TABLE) Documentation change Up to now I use SVN, but want to switch to git.…
guettli
  • 26,461
  • 53
  • 224
  • 476
8
votes
3 answers

How do I edit past git commits to remove my password from the commit logs?

My problem: cygwin git doesn't seem to correctly prompt for credentials when using https:// URLs, so I used username and password in the URL. Unfortunately when I did a "get pull" it auto-commited a message with the full URL including password. I…
Dewey Sasser
  • 379
  • 2
  • 8
8
votes
3 answers

How to edit Mercurial commit message after branching?

I have some old commit messages in a Mercurial repository that should be changed (to adjust for some new tools). I already understand that this hacking has to be done on the master repository and all local repositories would have to be re-cloned,…
Imre
  • 221
  • 3
  • 14
8
votes
2 answers

How do I edit the commit message of any commit in git?

Let's say I have 3 unpushed commits. Now I want to change the commit message of the first or second commit (changing them for the third one is simple using git commit --amend). How to do that?
Mot
  • 24,166
  • 22
  • 78
  • 117
7
votes
1 answer

What is "add files via upload" commit message in GitHub repositories?

I see lots of repositories in GitHub with this commit message: Add files via upload. But I couldn't figure out how this (probably) automatic commit message is made. I looked around to find a clue, but I couldn't find any reference for setting this…
Ali Tou
  • 1,351
  • 1
  • 9
  • 19
7
votes
2 answers

Print git commits body lines joined in one line

How can I print git commits to print only body (commit message without title) but in one line? So commit body lines are joined, possibly separated with space, and printed as one line for one commit. For example, with two commits A and B, command: $…
foka
  • 707
  • 6
  • 25
6
votes
3 answers

Git: change HEAD commit's message without touching the index

I know that I can use git commit --amend --file=path-to-my-new-message but this will amend staged changes, too. Of course, I could stash and later apply&drop the stash, but is there a quicker solution to change the HEAD commit message without…
Mot
  • 24,166
  • 22
  • 78
  • 117
6
votes
2 answers

XCode: Commit failed in SVN : No space left on device

Hi, I am committing my project in SVN using XCode. I do it successfully for quite a few months. But suddenly today, while committing, it is showing the following error : The working copy "Classes" failed to commit files. svn: Commit failed (details…
utsabiem
  • 890
  • 4
  • 10
  • 21
6
votes
4 answers

Commit type before feature is done

Conventional Commits defines several types for commit messages like feat, fix, chore, ci etc. My question is about the workflow if I'm working on a feature whose scope spans several days of work. As a good developer I want to commit early and often…
Alexander Zeitler
  • 8,345
  • 7
  • 54
  • 97
6
votes
4 answers

Proper Commit Messages

What are commit messages for? I've always been writing them as an explanation of what I did, but I've recently gotten into a discussion about it with a colleague who writes commit messages explaining why he did. Which one is right, or is there…
Clark Gaebel
  • 15,590
  • 16
  • 61
  • 89
6
votes
2 answers

How do you access the commit message in a Mercurial in-process hook?

I've been trying def debug_hook(ui, repo, **kwargs): changectx = repo[None] ui.status('change.desc: %s\n' % changectx.description()) return True But it always prints an empty string. Is this because it is a precommit hook and the…
davidavr
  • 13,461
  • 4
  • 25
  • 30