Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cd /sdcard/Documents/Obsidian
- git=$(which git)
- affected_files=$(git -c core.quotepath=false diff --name-only ':!Assets/')
- current_date=$(date +"%Y-%m-%d %H:%M:%S")
- message=$(printf "vault automate tablet sync: ${current_date}\n\nAffected files:\n${affected_files}")
- git pull && git add . ':!Assets/' && git commit -m "${message}" && git push
Advertisement
Add Comment
Please, Sign In to add comment