1

I was unable to find, how to set default commit message in TortoiseGit:

enter image description here

seems the default git method doesn't work:

[commit]
    template = ~/message.txt
2
  • 2
    This are several question in one. Commented Sep 20, 2018 at 7:46
  • ok, corrected.. Commented Oct 15, 2018 at 14:02

2 Answers 2

3

1) The git default mechanism works in general, however, there seems to be a bug with ~/ - use an absolute path as a workaround, i.e.

C:/Users/user/git_message.txt

2) On the commit dialog the "Commit" button is a menu dropdown button. Choose Commit & Push there (cf. https://tortoisegit.org/docs/tortoisegit/tgit-dug-commit.html).

Sign up to request clarification or add additional context in comments.

3 Comments

1) have you test/got it working? 2) Yes, i know that, however i wanted to do that directly with rigth click on file, but unlike the screenshot, there was "PUSH" directly (with the preset default message).
A fix for 1) will be in the next release.
I confirm using [commit] template = ~/git_message.txt in C:/Users/user/git_message.txt works
0

just in case someone needs to read this: do not use backslashes, use forward slashes for the path:

[commit]
    template = c:/message.txt

1 Comment

Hi, thanks for contributing. I don't think it's necessary to mention this, when both question and answer alrady use slashes

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.