Skip to content

Instantly share code, notes, and snippets.

@jsjoeio
Created June 16, 2020 16:55
Show Gist options
  • Save jsjoeio/6b64aabe0b96b9897e867251044aab13 to your computer and use it in GitHub Desktop.
Save jsjoeio/6b64aabe0b96b9897e867251044aab13 to your computer and use it in GitHub Desktop.
Obsidan - sync with git
# function to push to git
function gitpush() {
git add .
git commit -a -m "add notes"
git push
}
# aliases
alias vault="cd dev/obsidian-vault && git pull"
alias vaultpush="cd dev/obsidian-vault && gitpush"
alias vaultp="vaultpush"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment