Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

You can find every Visual Studio’s version here: \Tc4s0a\groups\AARA\AARAD\Software Library\Developer Tools\Microsoft

Select a project

  1. Open Azure DevOps

  2. Select Repos and choose the project

Create a branch from DevOps

  1. Open Azure DevOps

  2. Go to Branches > New Branch

  3. Add a name, select your work item and click on create

    1. The standard for branch’s name: feature/PbiNumber-PbiTitle

Delete a local branch

  1. Open Visual Studio and Clone a repository

  2. Browse Azure DevOps repository

  3. Connect to the training repository within dev.azure.com > transport-canada > DSD-CIVAV Support > Training

  4. You need to track/checkout another branch before deleting the branch you want. In my case, before delete 119000-TrainingLink

    I need to choose another one like Dev > right mouse button > Checkout

  5. After this, I can delete my branch

Delete a local project

  1. Open Windows Explorer > Go to your project path > right mouse button > Delete

Refresh the list of remote branches in Visual Studio

This was my visualisation before the refresh

  1. Go to Team Explorer settings

  2. Select either "Global Settings" and "Repository Settings"

  3. Set "Prune remote branches during fetch" to true

  4. Go to Git > Sync (Pull then Push)

This was my visualisation after the refresh

Clone git repository with Visual Studio 2013

  1. Connect with DevOps

    1. Click on Select Team Projects > Servers > Add > https://dev.azure.com/transport-canada

  2. Click on transport-canada and select DSD-CIVAV Support

  3. Connect with the project

  4. Clone the repository

  5. Track your DevOps branch. When you clone the repository, the default branch will be the default branch of the DevOps repository. You need to track your branch.

    1. Click on New Branch

    2. Select your branch

    3. Click on Create Branch

  6. Open the README.md file. Click on File > Open > File > select README.md file

Clone git repository with Visual Studio 2015

  1. Click on Team Explorer > Connect

  2. Click on Servers > Add

  3. Add the information from DevOps https://dev.azure.com/transport-canada > OK.

  4. After that click on Connect

  5. Click on this

    and select the project and connect.

  6. Click on Branches

  7. Track/Checkout your DevOps branch. When you clone the repository, the default branch will be the default branch of the DevOps repository. You need to track your branch.

  8. Open the README.md file. Click on File > Open > File > select README.md file

Clone git repository with Visual Studio 2019

(info) I downloaded the visual studio 2019 community version from here.

  1. Clone Repository

  2. Select Azure DevOps

  3. In this step, we need to be connected. When you are connected, we can see in the list dev.azure.com > transport-canada.

  4. If you don’t see the option in the list, you need to add the server. Click on Add Azure DevOps Server > Add the URL https://dev.azure.com/ > Add. After that, the list will be updated.

  5. Select transport-canada > DSD-CivAv Support > Training project. Set up your path to finish the clone.

  6. Click on Team Explorer > Git Repository

    or View > Git Repository

  7. Track/Checkout your DevOps branch. When you clone the repository, the default branch will be the default branch of the DevOps repository. Select your branch > right button > checkout

    or you can set/track/checkout your branch from here

    (warning) If you received a message “A branch with the name “feature/yourbranch” already exists I advise you to start the process again. Don’t forget to delete your project folder (like I said on Delete a local project)

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.