blob: 15f3564ff560f0086748a3d2a32b95ce18d19522 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#! /usr/bin/env sh
# Add org file changes to the repository
#
# source: http://doc.norang.ca/org-mode.html#GitSync
cd ~/org
# Remove deleted files
git ls-files --deleted -z | xargs -0 git rm >/dev/null 2>&1
# Add new files
git add . >/dev/null 2>&1
git commit -m "$(date +%Y.%m.%d..%H.%M)"
|