From e46a0675a0abed68b56428b4c9186b373473b521 Mon Sep 17 00:00:00 2001 From: Flancian <0@flancia.org> Date: Fri, 26 Feb 2021 21:21:59 +0100 Subject: [PATCH] Default commit message, part of an automated flow. --- foam-settings.md | 16 +++++----------- ship.md | 10 ++++++++++ 2 files changed, 15 insertions(+), 11 deletions(-) create mode 100644 ship.md diff --git a/foam-settings.md b/foam-settings.md index 26ddd5065..0a94fc517 100644 --- a/foam-settings.md +++ b/foam-settings.md @@ -6,18 +6,18 @@ - Some changes to [[keybindings.json]] in your global (user scope) ```.config/Code/user/``` directory so that you can use shortcuts such as ```ctrl-alt-s``` (save all changes locally) and ```ctrl-shift-a) (push changes to the [[agora]]). - Optional additional [[git config]] to make submitting to your git hosted digital garden (and transitively to the [[agora]]) easier/less work. - In particular, a [[commit template]] so that you don't need to write a change description every time you want to push to the [[agora]]. -- [[push]] [[settings.json]]: +- [[push]] [[settings.json]]: a [[file]] ``` "foam.openDailyNote.directory": "journal", "vscodeMarkdownNotes.newNoteDirectory": "WORKSPACE_ROOT", ``` -- [[push]] [[commit-template]]: +- [[push]] [[commit-template]]: a [[file]] ``` Default commit message, part of an automated flow. ``` -- [[push]] [[keybindings.json]] (global): +- [[push]] [[keybindings.json]] (global): a [[file]] ``` [ { @@ -46,14 +46,8 @@ Default commit message, part of an automated flow. } ] ``` -- This results in being able to press ctrl-shift-s to save all files; and ctrl-shift-a to push changes to the [[agora]] without the need to write a commit message. -- [[push]] [[ship]], a very simple script / .bashrc function: -``` -#!/bin/sh -git add -A -git commit -a -m "$*" -git push -``` +- This results in being able to press ```ctrl-shift-s``` to save all files; and ```ctrl-shift-a``` to push changes to the [[agora]] without the need to write a commit message. +- See also [[ship]] [//begin]: # "Autogenerated link references for markdown compatibility" [pull]: pull "Pull" diff --git a/ship.md b/ship.md new file mode 100644 index 000000000..be576db69 --- /dev/null +++ b/ship.md @@ -0,0 +1,10 @@ +# Ship + +``` +#!/bin/bash +git add -A +git commit -a -m "$*" +git push +``` + +