From 58458b9f897e84f4723559bbd3f25ead554212df Mon Sep 17 00:00:00 2001 From: Flancian <0@flancia.org> Date: Sun, 22 Nov 2020 18:23:17 +0100 Subject: [PATCH] Auto: misc. --- auto-commit-messages.md | 21 +++++++++++++++++++++ journal/2020-11-22.md | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 auto-commit-messages.md diff --git a/auto-commit-messages.md b/auto-commit-messages.md new file mode 100644 index 000000000..0561a62a5 --- /dev/null +++ b/auto-commit-messages.md @@ -0,0 +1,21 @@ +# 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 to "commit all": + - 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. + + +[//begin]: # "Autogenerated link references for markdown compatibility" +[jonathan]: jonathan "Jonathan" +[luciana]: luciana "Luciana" +[foam]: foam "Foam" +[agora]: agora "Agora" +[//end]: # "Autogenerated link references" \ No newline at end of file diff --git a/journal/2020-11-22.md b/journal/2020-11-22.md index aefc65b37..fbe208f44 100644 --- a/journal/2020-11-22.md +++ b/journal/2020-11-22.md @@ -27,5 +27,7 @@ [ubi-zurich]: ../ubi-zurich "UBI Zurich" [stephen-wolfram]: ../stephen-wolfram "Stephen Wolfram" [bodhisattva-vow]: ../bodhisattva-vow "Bodhisattva Vow" +[auto-commit-messages]: ../auto-commit-messages "Auto Commit Messages" +[alan-laidlaw]: ../alan-laidlaw "Alan Laidlaw" [human-computer-interaction]: ../human-computer-interaction "Human Computer Interaction" [//end]: # "Autogenerated link references" \ No newline at end of file