Skip to content

Instantly share code, notes, and snippets.

@oldtune
Created September 24, 2024 03:36
Show Gist options
  • Save oldtune/505c4bb3034f77cf067173998aaea611 to your computer and use it in GitHub Desktop.
Save oldtune/505c4bb3034f77cf067173998aaea611 to your computer and use it in GitHub Desktop.
Obsidian git wrapper for windows
# Note that this script is executed using powershell
# The limitation of this is that we can only use 1 instance of Obsidian on 1 machine at the time. Otherwise, there could be confliction and would requires manually resolved.
git pull
Start-Process "C:\Program Files\Obsidian\Obsidian.exe" -Wait
git add .
git commit -m "auto commit by system"
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment