Skip to content
Arthur Benemann edited this page Mar 15, 2013 · 1 revision

All the DIY Drones repositories on Google Code are migrating from the Subversion to Git version control systems. Here's a quick guide to using Git on Windows.

Step 1: Download MySysGit. It will load a few programs. One of them is GitGUI. Drag that icon to your desktop.

Step 2: This is a bit clumsy, but Google Code doesn't use SSH like most other Git repositories, so we have to go through a silly little process so Windows will remember our Git username and password.

Create a folder in your root directory called C:/HOME. In that, create a text file called {{{_netrc}}} (no extension). So that filename is {{{C:/HOME/_netrc}}}

In that file enter the following (you can get your Google Code password here):

machine code.google.com
login (your Gmail login, which is usually your email address)
password (your Gmail password)

Now right click on !MyComputer on your desktop and follow this path to tell Windows to look for this file:

http://ardupilot-mega.googlecode.com/svn/ArduPilotMegaImages/gitsetup.png

Step 3: Open GitGUI and select Clone Existing Repository

http://ardupilot-mega.googlecode.com/svn/ArduPilotMegaImages/GIT.PNG

Step 4: Enter the URL of the repository you want to checkout to your hardrive, and give it a folder name. In this case, I've used the original !ArduPilot repository. Click on "Clone".

http://ardupilot-mega.googlecode.com/svn/ArduPilotMegaImages/GIT2.PNG

Step 5: You may actually want to work in one of the branches. In the Branch menu, select "Create New Branch" and pick the branch you want to work with:

http://ardupilot-mega.googlecode.com/svn/ArduPilotMegaImages/GIT0.PNG

Step 6: Edit and save the files you want to change. We recommend the Notepad++ editor.

Step 7: When you're done, click on Rescan to detect the changes.

http://ardupilot-mega.googlecode.com/svn/ArduPilotMegaImages/GIT4.PNG

Step 8: Now click on Stage Changed and enter a Commit message:

http://ardupilot-mega.googlecode.com/svn/ArduPilotMegaImages/GIT6.PNG

Step 9: Now click on Push. This will upload it back to the Google Code repository. You're done!

http://ardupilot-mega.googlecode.com/svn/ArduPilotMegaImages/GIT5.PNG

Clone this wiki locally