Categories
Git Source Control Team Foundation

Team Foundation checkout vs Git checkout

Source Control Checkout

I have a friend that has been using Team Foundation Server to manage his projects for a long time. He knows all the commands to create branches, merge, annotate, get latest, checkout, etc. However, when we started using Git, he was expecting the checkout command to perform the same action as Team Foundation.

In Team Foundation, the checkout command allows you to make changes to a file and also specify a lock type. In visual studio 2012, I see 2 options for lock type:

– Unchanged – Keep any existing lock and
– Check In – Allow other users to check out but prevent them from checking in

After you have selected the lock type, you can click the “Check Out” button and the file will be in edit mode and ready for you to make changes.

In Git, the checkout command is use to switch/create a new branch. If you want to switch to an existing branch, you can run the following command:

$ git checkout existingBranchName

If you want to create a new branch and switch to it, you can run:

$ git checkout -b newBranchName

To see the full list of available options for the checkout command, visit the official git documentation site @ http://git-scm.com/docs/git-checkout.

Hopefully this will help other developers using git coming from a Team foundation background.

Categories
General

This month be thankful for the world wide web

World Wide Web

In the United States, we celebrate Thanksgiving on the fourth Thursday in November. Many families take time off from their busy schedule to be with their family and enjoy a nice meal. It is a time to be thankful.

As a software developer,  I’m thankful for the world wide web. I had a revelation back in 1997 when I took my first computer science course in Mountain View Community College. As part of my assignment I had to search for information and google provided the data I needed. It was during that time that I made the following remarks, “the web will have a major impact in the world.” From that point on, I wanted to learn more about the web. Who invented the web? Can I create my own web site? I was determined to learn more about the world wide web. So I took different courses in HTML, CSS, and Javascript. These courses gave me the foundation to start my career as a software developer.

I’m thankful for the web because it created a whole new industry. We can thank the web for the rise and success of ebay, amazon, netflix, apple, and many other companies. It has created many job opportunities. I can be thankful for the web because it created my job. It is hard to imagine the world without the web.

What about you? Are you thankful for the web?