You are on page 1of 4

Git Source Control for Visual Studio 2010 on DropboxRemondo

http://www.remondo.net/git-source-control-for-visual-studio-...

Remondo
.NET developers brain repository in plain C#

Git Source Control for Visual Studio


2010 on Dropbox
Posted on December 13, 2011
I reckon that using Git

with Dropbox

is a poor mans Source Control in the Cloud,

but its a free solution for private code repositories. Dropbox gives you 2 gigs of cloud
space to fill with whatever I want, so why not some of my crappy code? Its also easy to
manage and share this way and comes in handy while waiting for a TFS preview
invite

to hit my mailbox. So heres what I did:

Download and install the latest version of the following software:


Git for Windows
Git Extensions

and dont forget to check to include Kdiff3

in the installer

for integration with Visual Studio

Dropbox for Windows


Next create a folder for your code in your new Dropbox folder on your Windows
machine. This is your place for code in the cloud. Open a test solution in Visual studio to
play around with. You can place it anywhere on your local system. From within Visual
Studio choose Git -> Initialize new repository (personal). You now created a new Git
repository for this solution. Also choose Git -> Edit .gitignore. It is safe to choose the
Add default ignores option to prevent Git from uploading non-code files build by Visual
Studio, like the /bin/debug folder.
Now start Git GUI and open the existing repository you just created. If all went well you
see your solution files under the header unstaged changes.

1 de 4

12/07/04 18:34

Git Source Control for Visual Studio 2010 on DropboxRemondo

http://www.remondo.net/git-source-control-for-visual-studio-...

Select all files and choose Commit -> Stage to Commit. Your files apear in the Staged
Changes (will commit) listbox. Now add some comment to the Initial comment
message textbox and press Commit. Now Git can track any changes in your code.
Push your code to Dropbox
Lets create a remote connection by choosing Remote -> Add give it a name and the
local path to you Dropbox repository folder (e.g. C:\Users\name\Dropbox\Repository).
Select Initialize Remote Repository and Push and click Add. Git places a copy of
your solution in the Dropbox folder. Within seconds, Dropbox will synchronize
automatically, ready to be pulled by Git for co-developers on other systems.
Articles you might like
Herding Code Podcast on GIT for Windows Developers
Weekly Open Source Project with Code 52
Gosto

Tweet

Share

This entry was posted in Tutorial and tagged source control, visual studio by Leon
van Bokhorst.
Bookmark the permalink [http://www.remondo.net/git-sourceStumbleUpon
control-for-visual-studio-2010-on-dropbox/] .
6 THOUGHTS ON GIT SOURCE CONTROL FOR VISUAL STUDIO 2010 ON DROPBOX

Juan
on February 22, 2012 at 1:15 pm said:

Hi. Nice and clean solution!.. one question here: Lets create a remote

2 de 4

12/07/04 18:34

Git Source Control for Visual Studio 2010 on DropboxRemondo

http://www.remondo.net/git-source-control-for-visual-studio-...

connection by choosing Remote -> Add where is that option? I cant find it

Juan
on February 22, 2012 at 1:17 pm said:

oops my bad, it comes with the GIT Extensions..

Leon van Bokhorst


on February 22, 2012 at 2:28 pm said:

Hi Juan hope this helps

Juan
on February 22, 2012 at 4:38 pm said:

the Remote -> Add doesnt exit anymore.. now I see Remotes->Manage
remote repositories and PuTTy.. with GIT Extensions.. do you know how to
configure it? the default pull behaviour isnt working for me.. but it works
manually.

Leon van Bokhorst


on February 22, 2012 at 6:35 pm said:

Hard to see whats wrong from this far.


Did you install the Net Installer msysGit-netinstall-1.7.9preview20120201

? It still works fine here.

A more extensive tutorial can be found here .

Leon van Bokhorst


on February 22, 2012 at 7:07 pm said:

3 de 4

12/07/04 18:34

Git Source Control for Visual Studio 2010 on DropboxRemondo

http://www.remondo.net/git-source-control-for-visual-studio-...

Now I see where you got lost.


You looking at the GIT Extensions window. The Remote->Add menu
option is found in GIT GUI. You can find this in GIT Extensions
window, GIT->GIT GUI menu option.
HTH

4 de 4

12/07/04 18:34

You might also like