posts - 293 , comments - 426 , trackbacks - 0

My Links

News

View Steve Michelotti's profile on LinkedIn

Twitter












Tag Cloud

Archives

Post Categories

My Online Presence

6’ Code GIT Challenge – GET GIT

 

It has been some time since I have had an hour or so to do a decent blog post, and finally today I sat down and decided I would just have to make the time. I am itching for some F# programming, but decided to first attempt the 6 Degree’s of Code Challenge that was extended by Garren at the last user group meeting.

In essence while Garren never mentioned it specifically, he gave us Euler Problem 3. Since I have already solved the problem in F#, I thought it would be a good idea to do the same thing in C#. The actual solution was relatively easy, but the real intention of the challenge was to get a bit of exposure to Git.

I must be honest, I have never worked with Git before – in fact the only exposure I have had to source code control has been SVN and that has only been at a superficial level. I installed tortoise, then installed visual SVN over that and hey presto… no command prompt.

Git Getting Started

It seems with GIT I am not going to get away from the command prompt. Not that I am scared of a console, but I have been spoilt with Windows applications and it has been some time since I have had a good bash at command line commands. As far as I understand, there are a few plugins that I can run that will put a UI over GIT, but at least initially I would like to get used to some of the raw basics, and then once I am familiar, or at least know that the commands exist, then I can look at hiding it all behind a UI.

There also seems like tons of resources/blogs on getting started with GIT. One that I read that was good for me can be found here…

I am going to be working on a Windows machine so I installed msysgit and did the basics that Carl Worth went through.

After going through the basics on Carl’s blog I found it covered pretty much everything I needed, except how to push changes from my local machine back to the live one. A little more googling and the following blog post really helped.

The keyword I was looking for was…

# git push origin master

All seemed fine, except Git was asking me for a passphrase when I tried to push my local version to Garrens account on GitHub. I eventually emailed Garren, so will wait and see what passphrase it is requiring.

Will update in a future blog…

Print | posted on Monday, September 20, 2010 5:30 PM | Filed Under [ Misc ]

Feedback

Gravatar

# re: 6’ Code GIT Challenge – GET GIT

I'm still fairly new to Git myself, but I believe if you want to push to GitHub you'll need to set up an SSH key. You can find info here: http://help.github.com/msysgit-key-setup/

Hope this helps,
Lee
9/22/2010 5:59 PM | Lee Brandt
Post A Comment
Title:
Name:
Email:
Comment:
Verification:
 

Powered by: