In this workshop we shall create VSTS project and git repository.
Pre-requisites
Visual Studio 2017 – https://www.visualstudio.com/vs/community/
Git – https://git-scm.com/downloads
Lets follow below steps to achieve this
Login to https://www.visualstudio.com/team-services/
- If you have either Outlook, Live or Hotmail account account then Sign In
- If you don’t have any of Microsoft account then create one. This newly created account will be used for next steps
- After you login, click on Create new account
- Give a name to your VSTS account. Select Git as source control and click on Continue. If any changes needed you can click on Change details link
- This creates first project. you have multiple options to choose the code
- Clone this code to your computer
- Push an existing repository
- Import a repository
- Build code from external repository
- For this workshop will will import sample Asp.net code from Git. Click on Import a repository option and click Import button
- Lets create new repository to host our code
- Give name for the repository and select Type as Git
- This will create empty Git repository. We can open this in Visual Studio
- Clone in Visual Studio will open Visual Studio where we will clone the repo locally. or you can open Visual Studio, login with same credentials so that we can clone this repo. Visual Studio gives you option to add project. Otherwise you can still can new project to this cloned solution
- Once Python DJango project is added to solution, we can now commit these changes to Git.
- Changes have been committed locally, we need to Push it to Server.
- Now if you refresh VSTS, you will these changes have be pushed to server.