Skip to content

Instantly share code, notes, and snippets.

View jfretin's full-sized avatar

Jonathan Fretin jfretin

  • Royal Distribution
  • France
View GitHub Profile
@jfretin
jfretin / README
Created October 4, 2011 13:47 — forked from rfreebern/README
Use bitbucket as a private offsite code backup (edited)
Now that bitbucket supports git, it's easy to use their service as a free, private, offsite code backup. Just create an empty repo for your project on bitbucket, add it as a remote to your development repo:
username@host:~/project$ git remote add bitbucket git@bitbucket.org:username/project.git
Edit: I had to change in the config file the url value to set the complete https url: https://username@bitbucket.org/username/project.git
and use this post-commit hook to silently and automatically push your changes up after each commit.