Created
November 11, 2010 17:56
-
-
Save comfuture/672902 to your computer and use it in GitHub Desktop.
sync local added file to remote git repository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on adding folder items to dropbox after receiving added_files | |
set firstFileName to the name of item 1 of added_files | |
set numFiles to count items in added_files | |
repeat with i from 1 to number of items in added_files | |
set posixPath to POSIX path of (item i of added_files as string) as string | |
do shell script "git add " & posixPath | |
end repeat | |
do shell script "git commit -a -m'added " & firstFileName & "...'" | |
do shell script "git push" | |
end adding folder items to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment