0

Since few weeks, I'm trying to improve my level with the use of Git, and recently, I realized that my commits descriptions we're not enough readable..

To make it look better, I would like to write all of the description into a file, and then, use this file as commit descriptor. However, I don't know bash...

Example :

Desc.txt

----
-Add of Login
-Debug Http
----

`...; git commit -am read("Desc.txt"); ...

How can I achieve that?

Thank !

Alastair McCormack
  • 26,573
  • 8
  • 77
  • 100
Emixam23
  • 3,854
  • 8
  • 50
  • 107
  • A few more ideas in [Preparing a git commit messaging before committing?](https://stackoverflow.com/q/20438293/5358968) – Steve Aug 11 '17 at 07:26

1 Answers1

3

The option is built into the Git command. See -F from https://git-scm.com/docs/git-commit

Example:

git commit -a -F Desc.txt
Alastair McCormack
  • 26,573
  • 8
  • 77
  • 100