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
0
votes
3 answers

How add new empty-lines in the message of one-line command "git commit -m"

If I want to not use any text editor and put all the commit message including subject and body lines into the useful one-line command: $ git commit -m 'message including subject and body lines' , I need to insert first body-line two lines after…
muel
  • 43
  • 1
  • 13
0
votes
1 answer

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 kinda sparse.
xeruf
  • 2,602
  • 1
  • 25
  • 48
0
votes
2 answers

WebStorm: continue merge with generated commit message after resolving conflicts

I tried to merge one branch with my current branch and got some conflicts. I manually resolved them and clicked apply. WebStorm tried to continue merge but failed because of my pre-commit hooks, which gave me some linting errors. I manually fixed…
Zver64
  • 53
  • 1
  • 6
0
votes
1 answer

Could git open vim editor at line N whenever we are creating commit?

I working in a project where each commit in a branch MUST start with Story PRJCT-NAME-42 Task description And must contain a message like this Story PRJCT-NAME-42 Task description foo bar description I've created a custom message and stored in…
sensorario
  • 20,262
  • 30
  • 97
  • 159
0
votes
2 answers

Could not set the svn commit message in ccnet

I made a CCNET task to commit changes in a setup project after all msbuild tasks have successfully finished. Commit changes in the setup project file to SVN commit -m "Commmit…
charlie faith
  • 13
  • 1
  • 5
0
votes
1 answer

can I restore the commit message along with a stash?

Visual Studio 2019 Team Explorer has a new feature that allows me to stash my current changes. When I invoke it (with or without --keep-index) it uses the current content of the commit message window as the stash title. Then it clears the commit…
user829755
  • 1,489
  • 13
  • 27
0
votes
1 answer

How to prevent no commit message in Source Tree?

Seems that we can commit with no message in Source Tree, but I want others not to do it in my project.
0
votes
1 answer

ERROR: fatal: failed to stat 'HEAD^^^^^^^^^^^^^^^^^ Filename too long

I copied a repository (which had some not committed changes) $ git checkout -b feature/servicing/pal4_Migration2 M .idea/libraries/tsconfig_roots.xml M ui/dev/pages/AbstractChecks.ts M …
David
  • 67
  • 6
0
votes
2 answers

Git commit messages if I split a single task into 2 commits

For example, if I haven’t finished a task at the end of a day but want to commit and push my work. The next day I’ll finish the task and commit the finished task again. What should the 2 commit messages look like? For example Apply new Changes…
Julian
  • 422
  • 2
  • 6
  • 10
0
votes
3 answers

why commit messages in local branch show up in master commit history after merged to master?

created a local branch, made several commits, merged the branch to master, then pushed to the remote master. why do the commit history in my local branch is also shown up in the remote master? is there any way to delete these commit messages?
upout
  • 19
  • 1
0
votes
1 answer

Turn off git path resolution in commit message

When I use path specs in git commit message, they are resolved in system absolute paths! E.g. git commit -m "/tools/controller subproject moved to submodule" will result in C:/Program Files/Git/tools/controller subproject moved to submodule How can…
kalaider
  • 193
  • 10
0
votes
1 answer

git commit-msg hook not triggering when recursive merge occurs on pull

We are using gerrit CI, which requires a commit-msg hook which adds a Change-ID to each commit message. However, sometimes when pulling we get a recursive merge, this shows up in the reflog like this: 767deb5 HEAD@{0}: pull: Merge made by the…
Inbar Rose
  • 41,843
  • 24
  • 85
  • 131
0
votes
1 answer

Parse ticket number from branch name and show it as default commit message in TortoiseGit on Windows

My feature branches are called feature/x_somename where x is the ticket number. Everytime I start a new commit, the following shall happen: Parse the ticket number from the branch name. Put refs #x: in the commit message (where x is the ticket…
Tim Pohlmann
  • 4,140
  • 3
  • 32
  • 61
0
votes
1 answer

git commit with template message

is it possible to do a git commit and when the editor opens it is already filled with a message to be edited? example: git commit "some string" would open the text editor with "some string" that could be edited. Use case: I have a git alias to…
pedrorijo91
  • 7,635
  • 9
  • 44
  • 82
0
votes
1 answer

How do I make BitBucket recognize line breaks in commit comments?

I work with mercurial, and use long(ish), multi-line commit comments. Recently, I've put my project on BitBucket.org, and have noticed that when my commit comments are appended to issue pages (see this SO question for information on how/when that…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
1 2 3
8
9