So GitHub is a new big thing that most developers should know about. What is GitHub?
“Git is an extremely fast, efficient, distributed version control system ideal for the collaborative development of software.”
This is a summary guide how you start with GitHub for .NET developers.
Go and install msysgit for Windows from http://msysgit.github.com/
All Defaults and line-endings is as-is. When you start and download source code you might have different Line-Endings (MAC/Windows difference) and that can cause problems. Type the commands below to validate, or change settings to false.
Signup on http://github.com for a free account.
Next you need to create SSH files to connect to GitHub.
$ ssh-keygen -t rsa -C “firstname.lastname@example.org”
Enter (on filename/location prompt)
Enter passphrase twice…
Done! Now 2 files are created under (“C:\Users\Administrator\.ssh”)
id_rsa – is your PASSWORD (keep it safe)
id_rsa.pub – is for public use, send to friends when needed!
Open id_rsa.pub and copy the long string to
When you have copied you public key information to github.com verify it with:
$ ssh -T email@example.com
Are you sure you want to continue connecting (yes/no)? yes and you passphrase from before:
When msysgit is installed and verified as above.
Set your global settings as:
$ git config –global user.email “firstname.lastname@example.org”
$ git config –global user.name “Your Name”
To connect using SSH you need “API Token” under Account Settings
$ git config -global github.user YourUserName
$ git config –global github.token 0123456789yourf0123456789token
Create a Repository(Project) on github.com (You can only have public repositories on a free account)
To continue see http://help.github.com/create-a-repo/
Now you should have the basic stuff installed and configured.
You have created a local Repository, the connection to your GitHub repository and can upload source code changes to GitHub.