Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  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. You need to track/checkout another branch before deleting the branch you want. In my case, before delete 119000-TrainingLink

    Image Added

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

    Image Added
  2. After this, I can delete my branch

    Image Added

Delete a local project

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

    Image Added

Refresh the list of remote branches in Visual Studio

This was my visualisation before the refresh

...

  1. Go to Team Explorer settings

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

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

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

    Image Added

This was my visualisation after the refresh

...

Clone git repository with Visual Studio 2013

...

  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)

    Image Added