Home > Software management > Adding a Project to Gitorious with a Windows Computer

Adding a Project to Gitorious with a Windows Computer

December 13th, 2011 Leave a comment Go to comments

If you are developing software in Windows XP, Windows Vista or Windows 7, here are the steps to follow to push your project to Gitorious.

  1. Register and create a new project on Gitorious, if you haven’t done already.
  2. Install msysGit to have git on your Windows machine
  3. Click on “Git Bash” to start the command line
  4. Generate the SSH Key with "ssh-keygen -t rsa" and  press ‘Return’ in every question. Go to your Gitorious dashboard, click on “Manage SSH Keys” then “Add SSH Key“, copy the content of "cat ~/.ssh/id_rsa.pub” in Gitorious and click save
  5. Then go to your local project directory and follow the “getting started instructions” given in Gitorious, which should look like:
    • git config –global user.name “Your Name”
    • git config –global user.email “[email protected]
    • git checkout master
    • git remote add origin [email protected]:your-project/your-project.git
    • git push origin master

Then wait until the code is pushed to the Gitorious server.

If you also installed ToitoiseGit on your development machine, you may encounter the following error as you connect to Gitorious:

Disconnected: No Supported authentication methods available

To work around this issue check GIT_SSH environment variable is set to “/usr/bin/ssh.exe”:

export GIT_SSH=/usr/bin/ssh.exe

If TortoiseGit  is installed, it may be set to “C:\Program Files\TortoiseSVN\bin\TortoisePlink.exe” instead and generate the error shown above.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter

Categories: Software management Tags: git, gitorious, windows 7, windows vista, windows xp
  1. No comments yet.
  1. No trackbacks yet.