Archive for category GIT

Free Remote GIT Repository with Dropbox

Introduction

Let me first start off by saying I love GIThub.  I would recommend that for any small or large business that would like a source control hosting solution.  However, this tutorial is for those who have maybe a personal side project, and they want their project kept nice and safe on the cloud and under source control 🙂

So here are the ingredients:

  1. 2 tablespoons of Windows (XP or 7) – however I am sure this can be applied to Linux or Mac
  2. 1 cup of Dropbox (can download it here)
  3. 1 cup of GIT (see note below)

Note: So you can download GIT here.  However, I used GITextensions, which installs GIT and integrates it very nicely with Visual Studio 2010 (or 2005/2008).  You can download GITextensions here.

Assumptions

  • I am assuming you have all of the ingredients above up and running.
  • I am assuming you are familiar with Dropbox, this is not a tutorial on setting Dropbox up.  (It’s really quite easy 🙂 )
  • I am assuming you have minimal knowledge of GIT (my definition of “minimal knowledge” of GIT is that you have at least watched this video)

The Good Stuff

So now lets git started 🙂

  1. Create two folders:
    • Remote_Repository (Create this inside your Dropbox folder)
    • Local_Project (I just created this on my Desktop)
  2. The Local_Project folder will have the development project your working on – Navigate to the Local_Project folder (using Git Bash), and create your GIT repository using the git init command
    • Initialize GIT Repository
  3. Let’s go ahead and create our initial commit, so our repository is “setup”
    • GIT Initial Commit
  4. Now we need to git clone –bare our Local_Project repository (Note: I am changing directory.  In screenshot below, I am one directory higher)
  5. Now we just need to setup our “local” repository to track our “remote” repository.  That way when we do things like git push or git fetch, GIT will know where to look. (Note: I am back in the Local_Project directory)
    • Add remote repo to GIT

Now you should be able to branch, commit, fetch, etc in your Local_Project, and when you git push to will go to the Remote_Repository folder, which is in your Dropbox folder, so it is automatically synced remotely 🙂

I have to admit, I have not tried this if you have multiple developers.  But again, I wanted smaller, personal side projects to have a remote source control solution.

Hope someone finds this useful.  Please feel free to add comments or questions below.

End of Line.

Advertisements

, ,

Leave a comment