Default commit message, part of an automated flow.

This commit is contained in:
2021-02-26 21:21:59 +01:00
parent ee8d56a3bc
commit e46a0675a0
2 changed files with 15 additions and 11 deletions
+5 -11
View File
@@ -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"
+10
View File
@@ -0,0 +1,10 @@
# Ship
```
#!/bin/bash
git add -A
git commit -a -m "$*"
git push
```