Questions tagged [azure-repos]

Azure Repos is the version control repository for Azure DevOps (previously VSTS) using either TFVC or Git.

Azure Repos is the version control repository for Azure DevOps (previously Visual Studio Team Services, VSTS) using either TFVC or Git.

380 questions
145
votes
10 answers

Warning: Multiple merge bases detected. The list of commits displayed might be incomplete

In Azure Repos, I have created a PR from branch A to branch B. There aren't any merge conflict displayed. But I end up with the warning message Warning: Multiple merge bases detected. The list of commits displayed might be incomplete. What does…
Janani
  • 1,559
  • 2
  • 5
  • 5
21
votes
3 answers

How to use Git LFS with Azure Repos and Pipelines

I have a project using Git LFS in Azure Repos with several binary image files being checked in using Git LFS. When my Azure Pipelines build performs a git pull, the image files are not pulled from Git LFS and I am left with several zero byte image…
Muhammad Rehan Saeed
  • 35,627
  • 39
  • 202
  • 311
19
votes
1 answer

Server-side custom git merge driver on GitHub/Azure Repos

I have a custom merge driver for git that helps merge lockfiles in a large monorepo shared by hundreds of engineers. Because lockfiles churn quite frequently, it's not uncommon for these files to result in merge conflicts while a PR is being…
Sachin Joseph
  • 18,928
  • 4
  • 42
  • 62
15
votes
1 answer

Azure DevOps - organizing projects and repositories

(Posting the question here as this is the 'community' that Microsoft redirects to with a 'Need advice? Ask community' button. Hope it won't get closed as 'primarily opinion based' or 'too broad') Hello, I want to start using AzureDevops in my…
Bartosz
  • 4,406
  • 7
  • 41
  • 80
14
votes
3 answers

Force a branch naming convention in Azure DevOps Git

We use Git hosted in Azure DevOps for all of our source code. So far we have used Git Hooks to ensure that team members follow a branch naming convention {branchtype}/{username}/{friendlyname}/{workitemtype}{workitemid}. Examples:…
dparkar
  • 1,934
  • 2
  • 22
  • 52
13
votes
3 answers

Can I set default security and/or branch policies in Azure DevOps?

We're using Visual Studio Team Services for our git server. Each Azure DevOps Project hosts one or many git repos. We have the convention of keeping master and develop branches locked-down, but letting other branches remain unrestricted. I'd like…
STW
  • 44,917
  • 17
  • 105
  • 161
11
votes
2 answers

Azure Devops Repos - Revert back to a previous commit like the recent ones never existed

I know that you can revert back to a previous commit but it doesn't sound like the history will be gone. How can I revert back to a previous commit and make sure the commits that came after are gone forever?
cbrawl
  • 875
  • 1
  • 9
  • 24
11
votes
1 answer

Cross-repo branch policy build validation - how to?

So, Azure DevOps UI now supports setting up cross-repo policies to protect the default (master) branch for all existing and future repositories - nice! Up until now we have used the same policy for each repository, manually setting it up whenever a…
Casper
  • 1,051
  • 1
  • 8
  • 21
10
votes
2 answers

Unsupported compression, Azure git push over SSH?

I am trying to push a new branch to azure repo which fails. Get an error that the compression method isn't supported. Tried googling for the error but my search didn't display anything that looked as the same problem. PS C:\dev\vh> git push…
duxck
  • 171
  • 1
  • 8
10
votes
2 answers

How to setup submodules Azure DevOps

Can somebody clarify how SubModule works in azure devops MyDevOps Root Folder I have a Solution called MyCore.sln containing 4-5 projects I have my Main Solution called MyMain.sln containing another 4-5 projects project referencing MyCore.sln…
developer9969
  • 4,628
  • 6
  • 40
  • 88
9
votes
2 answers

How can you insert suggestions on a PR in Azure Devops?

I found this somewhat recent mention of experimental PR features, and they mentioned the ability to insert and apply suggestions from the PR itself. That's a feature I've grown very accustomed to with other products, but I'm a bit lost as to how I…
user15716642
  • 171
  • 1
  • 12
8
votes
1 answer

How to display the build status in pull requests in Azure DevOps

I would like to display the status of pipeline builds in Azure Pipelines in corresponding pull requests in Azure DevOps Repos. I'd like to have some indicator which shows that a build succeeded of failed, like this (Note that this is a screenshot…
Alex
  • 569
  • 5
  • 21
7
votes
1 answer

How to recover deleted repository in Azure DevOps?

I deleted Azure Repo by mistake, now I want to restore that repo is there any way we can restore it? If possible, please advise.
sns
  • 131
  • 1
  • 8
7
votes
3 answers

How to source Terraform module hosted within Azure DevOps Repo via ssh

Looking for the correct/working way to source a Terraform module that is hosted within a private Azure DevOps git repo via SSH (see TF Docs on Git repo sourcing via ssh). It's undesirable to have a PAT token as it will eventually expire and renewal…
Jamie
  • 511
  • 7
  • 14
7
votes
2 answers

Exclude Files on a Pull Request on Azure DevOps

We are using Azure DevOps Repo as our code repository and there are 3 branches on there. They are Dev, UAT and master. When a developer needs to work on a feature, he/she creates a feature branch from Dev and then work on the feature branch. Once…
Rasika H
  • 119
  • 2
  • 2
  • 5
1
2 3
25 26