Skip to content

Instantly share code, notes, and snippets.

@alexroan
Created July 6, 2019 22:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexroan/509c632e0a359d580159f569c9f0fa7d to your computer and use it in GitHub Desktop.
Save alexroan/509c632e0a359d580159f569c9f0fa7d to your computer and use it in GitHub Desktop.
Microjournal entry shell script.
#!/bin/bash
d=`date +%Y-%m-%d`
filename="$d.md"
echo $1 >> $filename
git add .
git commit -m "$filename"
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment