├── .gitignore ├── GitDrop.app └── Contents │ ├── Info.plist │ ├── MacOS │ └── GitDrop │ └── Resources │ ├── AppSettings.plist │ ├── MainMenu.nib │ ├── appIcon.icns │ └── script ├── README.md └── gitdrop /.gitignore: -------------------------------------------------------------------------------- 1 | icon/* -------------------------------------------------------------------------------- /GitDrop.app/Contents/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tybenz/gitdrop/a6f3e949c2aca04f2f410488db17d43bf0ae5e17/GitDrop.app/Contents/Info.plist -------------------------------------------------------------------------------- /GitDrop.app/Contents/MacOS/GitDrop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tybenz/gitdrop/a6f3e949c2aca04f2f410488db17d43bf0ae5e17/GitDrop.app/Contents/MacOS/GitDrop -------------------------------------------------------------------------------- /GitDrop.app/Contents/Resources/AppSettings.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tybenz/gitdrop/a6f3e949c2aca04f2f410488db17d43bf0ae5e17/GitDrop.app/Contents/Resources/AppSettings.plist -------------------------------------------------------------------------------- /GitDrop.app/Contents/Resources/MainMenu.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tybenz/gitdrop/a6f3e949c2aca04f2f410488db17d43bf0ae5e17/GitDrop.app/Contents/Resources/MainMenu.nib -------------------------------------------------------------------------------- /GitDrop.app/Contents/Resources/appIcon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tybenz/gitdrop/a6f3e949c2aca04f2f410488db17d43bf0ae5e17/GitDrop.app/Contents/Resources/appIcon.icns -------------------------------------------------------------------------------- /GitDrop.app/Contents/Resources/script: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | DIR="/Users/tbenzige/Projects/aws" # Path to gh-pages repo 4 | URL="http://awes0.me" # Domain and path to where the GitHub Page lives on the web 5 | BASE=`basename ${1// /_}` 6 | 7 | cp "$1" "$DIR/$BASE" 8 | cd $DIR 9 | git add $BASE 10 | git commit -m "$BASE added" 11 | git push origin gh-pages 12 | echo "$URL/$BASE" | pbcopy 13 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | #GitDrop 2 | 3 | ### About 4 | 5 | This Mac application is meant for using your GitHub Page as a file server. It 6 | behaves identically to [Dockdrop](http://dockdropx.com/) in that all you do is 7 | drag a file to the GitDrop icon. Gitdrop will then add your file into your 8 | local repository and push it up to the remote repo, putting the link to the 9 | file in your clipboard. This will allow users to quickly share files using a 10 | GitHub Pages repository. 11 | 12 | ### Configuring the App 13 | 14 | To get the most out of Gitdrop you should have a special GitHub Page meant for 15 | hosting files you need to share. If you don't already have one that will work, 16 | here's how you can create one: 17 | 18 | 1. Create a [new GitHub repository](https://github.com/new). Call it something like "Share" 19 | 2. Create a GitHub Page for it by following the instructions [here](http://help.github.com/pages/) 20 | 3. Clone the repo onto your local machine 21 | 22 | Now to actually configure the app: 23 | 24 | 1. Paste the GitDrop.app file into your Applications directory and drag it to your dock. 25 | 2. Right click on the app in Finder and click "Show Package Contents" 26 | 3. Go to Contents/Resources and edit the file "script" in your favorite text editor. 27 | 4. Edit the DIR and URL variables to the appropriate values (see below) and save 28 | 29 | ``` 30 | DIR="path/to/your/local/repo" 31 | URL="yourgithubpage.com" 32 | ``` 33 | 34 | You now have a quick and easy way to share files by merely dragging a file to 35 | GitDrop and pasting the URL pointing to your GitHub Page. 36 | 37 | That's it! You're ready to start using GitDrop. Tell your friends! 38 | 39 | ### Contact 40 | 41 | * Email: [tabenziger@gmail.com](mailto:tabenziger@gmail.com) 42 | * Twitter: [@tybenz](https://twitter.com/#!/tybenz) 43 | -------------------------------------------------------------------------------- /gitdrop: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | DIR="/Users/tbenzige/Projects/aws" # Path to gh-pages repo 4 | URL="http://awes0.me" # Domain and path to where the GitHub Page lives on the web 5 | BASE=`basename $1` 6 | 7 | cp $1 $DIR 8 | cd $DIR 9 | git add $BASE 10 | git commit -m "$BASE added" 11 | git push origin gh-pages 12 | echo "$URL/$BASE" | pbcopy --------------------------------------------------------------------------------