Skip to content

Instantly share code, notes, and snippets.

@nkthiebaut
Created July 24, 2019 17:27
Show Gist options
  • Save nkthiebaut/64400066939857469ecf0bb3d1193250 to your computer and use it in GitHub Desktop.
Save nkthiebaut/64400066939857469ecf0bb3d1193250 to your computer and use it in GitHub Desktop.
Commit applescript
on run
set result to text returned of (display dialog "Enter github password:" default answer "" with hidden answer)
do shell script "cd /Users/nicolas/Google\\ Drive/notes && git add . && git commit -m new_commit && git push https://nkthiebaut:" & result & "@github.com/nkthiebaut/notes.git"
say "Notes successfully committed and pushed"
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment