Archive for April, 2011
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:
- 2 tablespoons of Windows (XP or 7) – however I am sure this can be applied to Linux or Mac
- 1 cup of Dropbox (can download it here)
- 1 cup of GIT (see note below)
- 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 🙂
- Create two folders:
- Remote_Repository (Create this inside your Dropbox folder)
- Local_Project (I just created this on my Desktop)
- 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
- Let’s go ahead and create our initial commit, so our repository is “setup”
- Now we need to git clone –bare our Local_Project repository (Note: I am changing directory. In screenshot below, I am one directory higher)
- For more information on git clone, see here
- 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)
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.