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

132 questions
2
votes
0 answers

Rebase git tree keeping revert references

I have a couple of branches with many commits (~20-30) and some of them revert earlier commits from the same branch. I now need to rebase those branches on current HEAD but I want to keep the revert commits, at least for now. (The branch is a port…
Flamefire
  • 5,313
  • 3
  • 35
  • 70
2
votes
1 answer

Setting a commit message / update comment when editing a page with Atlassian Confluence Python API

I am using the atlassian-python-api to update a page as described in the documentation: from atlassian import Confluence conf = Confluence(url=srvr, username=usr, password=pswd) page_id = '12345' new_page_title = 'This is a new…
2
votes
1 answer

git: how to get commit message (exactly) of commit?

How can I extract the commit message (and only/exactly the commit message) of a commit? git show https://git-scm.com/docs/git-show doesn't seem to have an option for that I could do git cat-file -p and then search for the first \n\n…
matthias_buehlmann
  • 4,641
  • 6
  • 34
  • 76
2
votes
0 answers

Git: How to reuse commit message (both subject and description)

How to reuse past commit's message while pushing new commit to the branch so that both subject and the description are retained? When I am typing git commit --reuse-message= or git commit --reedit-message=
Marek Bocian
  • 115
  • 10
2
votes
1 answer

How to set commit message template in Eclipse

Reading this article https://medium.freecodecamp.org/level-you-up-to-awesome-commit-messages-a85558cb90e8 I wanted to set my commit message template to show few comments to remind me of writing good commit messages. I see many answers on how to…
Tadija Malić
  • 445
  • 7
  • 26
2
votes
3 answers

Should I hard-wrap SVN commit messages

In the Git user community it's a widely adopted practice to hard-wrap commit message bodies to 72–76 character width; everybody knows this and tools like 'git gui' usually make it clear that hard-wrapping is expected. But that doesn't seem to be the…
firegurafiku
  • 3,017
  • 1
  • 28
  • 37
2
votes
1 answer

Tag in Git commit summary?

Do people use tags in commit in the one line commit summary? Are there any standard tags or commonly used tags? Git has supports for "tags" but it seems to mostly be used for tagging versions like "v1.8.5-rc1". By "tag" I don't mean that to tag a…
Fred
  • 12,086
  • 7
  • 60
  • 83
2
votes
1 answer

Custom Git *Rebase* Commit Message Template

So, I know how to set a custom commit message template for git. However, when I do an interactive rebase and use reword or squash, i would like to be able to set a custom message template for those commits as well. So far, I haven't been able to…
2
votes
2 answers

Search for TODO in added lines and show them as default commit message in TortoiseGit on Windows

I use TortoiseGit on Windows. Everytime I start a new commit, the following shall happen: Search for added or modified lines containing " TODO" Add these lines to the commit message (meant as a warning) Show commit dialog with the prepared commit…
Tim Pohlmann
  • 4,140
  • 3
  • 32
  • 61
2
votes
2 answers

Permanently disable commit message requirement in Sourcetree

I would like to use git to keep track of some highly volatile, non-critical personal data. I'm the only one accessing the repo, and I do not care much about most of git's features - it's mostly a quick and easy (local and remote) backup plus the…
mafu
  • 31,798
  • 42
  • 154
  • 247
2
votes
2 answers

Finding a revision by commit message

I know this kind of thing gets asked a lot (for example here), but (maybe because of this) I have not been able to find what I'm looking for. I know that I can specify a commit by a pattern matching its commit message, instead of by its hash, like…
mkrieger1
  • 19,194
  • 5
  • 54
  • 65
2
votes
2 answers

Is there a way to accumulate a commit message with git while examing changes?

I use "git add -p" to stage my changes. What I'd like to be able to do is to accumulate a commit message as I'm examining my changes and then when I call "git commit", it is already filled out for me and allows me to make changes before I…
Carl
  • 43,122
  • 10
  • 80
  • 104
2
votes
3 answers

Copying subversion commit messages

I know this isn't the BEST practice, but every once in a while when I'm merging up a huge batch up changes with the trunk (and I know my branch is current), I will simply delete the contents of the trunk and then copy the contents of my branch up,…
Falcor
  • 21
  • 1
2
votes
3 answers

Does Git allow me to write my next commit message gradually during developing?

I am new in Git. Is there possible to create commit message step by step during developing? Because I find it very exhausted to review all changes during commit or committing to frequently. Sorry if I am crowding questions in here :)
silver_rider
  • 65
  • 2
  • 8
2
votes
1 answer

How to make Git pre-commit behavior depend on commit message?

I know that to make git check the commit message before committing you can implement hooks/commit-msg. But now imagine a case where you want to let the hooks/pre-commit script behave differently based on the commit message? For example (in a very…
frans
  • 8,868
  • 11
  • 58
  • 132
1 2 3
8 9