GIT: Signed-off-by message as default

Added a new '.gitmessage' file which is to be used as a commit message
template, containing my Signed-off-by notice. Now all my commits contain
this message, not only those done in an IDE.

Signed-off-by: Tobias Manske <tobias.manske@mailbox.org>
This commit is contained in:
Tobias Manske 2018-09-01 11:20:43 +02:00
parent 88587d84b6
commit a3fac1d9f6
No known key found for this signature in database
GPG Key ID: 978D99F12D4E041F
3 changed files with 6 additions and 0 deletions

View File

@ -9,5 +9,6 @@
ignore = "!gi() { curl -L -s https://www.gitignore.io/api/$@ ; } ; gi" ignore = "!gi() { curl -L -s https://www.gitignore.io/api/$@ ; } ; gi"
[commit] [commit]
gpgsign = true gpgsign = true
template = ~/.gitmessage
[core] [core]
autocrlf = input autocrlf = input

3
.gitmessage Normal file
View File

@ -0,0 +1,3 @@
Signed-off-by: Tobias Manske <tobias.manske@mailbox.org>

View File

@ -15,7 +15,9 @@ vim:
git: git:
rm ~/.gitconfig || echo rm ~/.gitconfig || echo
rm ~/.gitmessage || echo
ln -s ~/.dotfiles/.gitconfig ~/.gitconfig ln -s ~/.dotfiles/.gitconfig ~/.gitconfig
ln -s ~/.dotfiles/.gitmessage ~/.gitmessage
xresources: xresources:
rm ~/.Xresources rm ~/.Xresources