VS2010 to GitHUB?

Oct 24, 2011 at 9:01 PM

Hi i am new to both GIT and GitHub. I use to use SVN and i want to move everything to GIT but first i though i would learn how to use GITHUB first with VS2010 before i port everything over.

 

I managed to create a new test public repository on github, create a new project in VS2010 and using the Git Source control provider i created a local git repository.

I then worked out that i need to do either a commit and push or just a push to get the changes to GitHub and that is where i hit the issues.

I tried to setup a remote repository but i could not seem to get the correct name and url combination when creating hte remote repository settings in VS2010 to get it to connect or push the files. Could anyone provide me an example or something either of all the steps or at least and example name and url from a public repository on github that i could use to base mine around?

 

Thanks 

Coordinator
Oct 25, 2011 at 12:13 AM
Edited Oct 25, 2011 at 12:13 AM

Hi seer_tenedos,

You can create as many commits locally. When pushing to GitHub, all the commits will be sent to GitHub. In order to push to GitHub, you can follow this help. http://help.github.com/win-set-up-git

Myself prefer not to setup SSH key. Instead, I add remote using https.

$git remote add origin https://your-github-user-name@github.com/your-github-repo-name.git

$git push

It will prompt you to enter password every time you push.

BTW, please make sure your name and email are configured in git.

$ git config --global user.name "Firstname Lastname"

$ git config --global user.email "your_email@youremail.com"

Regards,

Oct 25, 2011 at 5:30 PM

I tried to do that vias the VS2010 GUI options added via this plugin but it jsut never seems to return for a push and seems to do nothing.  At least using https.  It never asks for a password.  I am sure i could get it to work from the command line but then what is the point of the visual plugin to integrate git to VS2010 if you then need to do it all via command line for it to work.

Coordinator
Oct 25, 2011 at 11:47 PM

This plug-in displays file status. It also integrates git bash, git extensions and tortoise git. If you encounter a push GUI that hangs w/o asking password, I guess it is git extension. It seems have problem https push. The other tool, Tortoise git, the GUI works with https push.

Oct 26, 2011 at 12:05 AM

oh ok that explains it.  yes i was using git extensions under the hood.  I will install on of the other ones or switch to ssh