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.
Sojourn to http://www.visualstudio.com/en-us.
Sign in with an existing Outlook/MSN/hotmail account.
Account Creation / Usage
If this is the first time you ‘re going to use VisualStudio online, you will have to create an Account.
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/
On the other-hand, if you already have an existing account, you should use that one.
Keep in mind that if someone has added as a member to their account, you will see them listed here, as well.
Projects and Teams
Once you select an account, you ‘re taken to the next screen, the “Projects and Teams” screen.
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 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.
Credentials – Set
Credentials – Set – Complete
Credentials – Alternate Authentication Credentials – 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
Create a new team project – Completed
Git Command Line Commands
On our local computer, let us “clone the empty repository”.
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.
Issue “git clone” command
git clone https://<username>.visualstudio.com/DefaultCollection/_git/<project-name>
git clone https://daniel.visualstudio.com/DefaultCollection/_git/NetstatPS
Issue “git add” command
git add <source-file>
git add netstat.ps1
Issue “git commit” command
Issue “git push” command
git push origin master
git push origin master
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 – Git Commands
- Git Commands
References – Git – Basic Authentication
- Work from Git Command stub