Files
garden/auto-commit-messages.md
T
2020-11-22 21:17:35 +01:00

22 lines
1.2 KiB
Markdown

# Auto Commit Messages
- [[jonathan]] and [[luciana]] both complained about having to write commit messages in [[foam]] when using the [[agora]].
- The solution is:
- Create a text file in your garden; I call mine ```commit.txt```.
- Write in it whatever you would like all your commit messages to default to; you can just press enter and get whatever you have in this file.
- Run this in that directory: ```git config --local commit.template commit.txt```
- In VSCode, you can press ctrl-shift-c and get a terminal in which you should be able to paste that command. Presumably :) Let me know if this doesn't work for you!
- Optional: bind a key combination to "commit all". I use ctrl-shift-a.
- Press ctrl-k ctrl-s (this means to hold control and press k and s in succession).
- Type 'commit all' to find the matching command.
- Double click on it, press ctrl-shift-a, enter.
- Now you can press ctrl-shift-a and all files will be saved and then submitted to your git repo, and from there to the Agora.
- A is for Agora :)
[//begin]: # "Autogenerated link references for markdown compatibility"
[jonathan]: jonathan "Jonathan"
[luciana]: luciana "Luciana"
[foam]: foam "Foam"
[agora]: agora "Agora"
[//end]: # "Autogenerated link references"