Visual Studio Online – Configuration

Background

What is there not to like about GitHub? Not much.  It is very well supported across all platforms (Linux\Mac\Windows).

It is free; at least as long as your files are created in publicly available repositories.

It is that free angle that Microsoft is trying to attack.  As long as you ‘re OK with maximum number of 5 users, MS will allow you private git repositories.

 

Web Site

Sojourn to http://www.visualstudio.com/en-us.

Sign in

Sign in with an existing Outlook/MSN/hotmail account.

signin

 

Account Creation / Usage

If this is the first time you ‘re going to use VisualStudio online, you will have to create an Account.

Account Creation

Create an account.  It is important what you call your Account name as that will be your URL i.e https://<account-name>.visualstudio.com/

Account Usage

On the other-hand, if you already have an existing account, you should use that one.

Account Member

Keep in mind that if someone has added as a member to their account, you will see them listed here, as well.

Accounts

 

 

Projects and Teams

Once you select an account, you ‘re taken to the next screen, the “Projects and Teams” screen.

ProjectsAndTeams

 

 

User Credentials

User Credentials – Basic Authentication Credentials

Github and quite a bit other Unix\Linux implementations rely on public keys to authenticate users.

Visual Studio online supports the user of normal authentication; using plain username and password.

To set it up, we will do the following

  • Using a web browser, connect to http://www.visualstudio.com/
  • Keep in mind that you need an MSN/Outlook account to connect to visualstudio.com
  • Once connected, access https://app.vssps.visualstudio.com/profile/view?mkt=en-us
  • From the top menu bar access the settings menu by clicking on the wrench wrench icon
  • Access “My profile” window
  • The default tab is the “General” tab
  • Access the “Credentials” tab
  • Click on the “Enable Alternate credentials” hyperlink
  • Designate a secondary username by clicking on the Set hyperlink.
  • Enter & confirm the corresponding password
  • Register your changes by clicking on the “Save Changes” button

Please retrace your steps and confirm that your newly designated secondary account is in place.  As the password is previously confirmed, I will not re-enter it, unless you will like a new one.

 

General

UserProfiles - General

 

Credentials

userprofiles-credentials

 

Credentials – Set

userprofiles-credentials-setusername

 

Credentials – Set – Complete

userprofiles-credentials-setusername-and-password

 

Credentials – Alternate Authentication Credentials – Review

userprofiles-credentials-setusername-review

 

 

 

Create Team Project

As this is a new project, we will go create a new project

The project’s name will be NetstatPS and we have a choice of Git or TFS for the Version Control.  We chose to go with Git for now.

Create a new team project

createATeamProject

Create a new team project – Completed

createATeamProjectCompleted

 

Git Command Line Commands

 

On our local computer, let us “clone the empty repository”.

Instruction

cloneTheEmptyRepository

Change Folder

As the Git command line tool will create a folder matching the project’s name when we issue “Git Clone”, we will note our targeted folder.

Launch  Command prompt shell and navigate to our targeted folder’s parent folder.

Syntax:

cd <folder>

Sample:

cd E:\DanielAdeniji\Sourcecode\Powershell

 

Issue “git clone” command

Syntax:

git clone https://<username>.visualstudio.com/DefaultCollection/_git/<project-name>

Sample:

git clone https://daniel.visualstudio.com/DefaultCollection/_git/NetstatPS 

 

Image:

gitClone

 

Issue “git add” command

Syntax:

git add <source-file>

Sample:

git add netstat.ps1

 

Image:

gitadd

 

 

Issue “git commit” command

Syntax:

git commit

Sample:

git commit

 

Image:

gitCommit

Issue “git push” command

Syntax:

git push origin master

Sample:

git push origin master

 

Image:

gitpush

 

Summary

As I said I love github.  But, if there are some files that you will get into problems placing in the public domain, I ask you consider MS Visual Studio online.

Obviously, you can download and provision your own private Source Control library, as well.

References

References – Git Commands

References – Git – Basic Authentication

  1. Work from Git Command stub
    http://msdn.microsoft.com/en-us/library/dd286572.aspx#setup_basic_auth

 

 

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s