To sign up for VSTS and create a team project, please follow the below steps:
- Navigate to sign up for VSTS and create a team project and sign up for a VSTS account using the link
- Once signed in, it will take you to the page https://****.visualstudio.com/_projects.
- Or Navigate to https://my.visualstudio.com/.
- Click on get started in “Visual Studio Team Services”.
- Click on “New Project”.
- Enter Project Name, Description and Version control as “Git”.
- Work item process -- Agile
- Click on create. It will create a new empty project folder.
Once you are done with the creation, you need to the clone the project.
Before cloning the newly created project folder you need to generate the GIT credentials by following the below simple steps
- Click on Generate Git Credentials
- Enter your username and password
Now, you clone the newly created project folder to your local folder using the below commands
Building the code
git clone the repo
Eg: git clone https://***.visualstudio.com/_git/projectname
It will look for Git credentials. Please provide the credentials which you have generated previously to clone the project.
When the credentials are validated then the project will be cloned into your local folder.
There is another way to generate Git credentials as well.
Please find the highlighted area in the following screenshot where you navigate to the security tab and generate the credentials.
Here you go!
Your local folder path is ready to create the SPFx web part and work with your team.
Next Article
Create SPFx web part and publish the code using Git commands.