A simple Ruby script to backup the entirety of a GitHub project to a local folder.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
gitback.rb

README.md

gitback

Backups the entirety (code, wiki, issues) of a GitHub repo to the directory of your choosing (might I suggest your Dropbox directory?).

Usage

./gitback username/repo destination/directory

If it's a private repo:

./gitback --username=username --password=password username/repo destination/directory

That's it.

Dependencies

  • octokit
  • nokogiri