While importing from Bitbucket Server which is accessible over VPN to Azure DevOps, I am facing the issue as "Clone URL is incorrect. Clone URL requires authorization". May I know how to fix this issue.
And I saw import repository option in Azure DevOps. But is there any way to import multiple projects and their repositories of Bitbucket Server to Azure DevOps?
Here is a suggestion ticket about add support for Bitbucket Server for Azure DevOps. You can vote this ticket.
As a workaround, you can use git commands to clone and push your repositories.
1.Clone the source repo to a temporary folder on your computer using the bare option.
git clone --bare https://github.com/contoso/old-contoso-repo.git
cd old-contoso-repo.git
2.Create a target repo.
3.Copy the source repo to the target repo.
git push --mirror https://dev.azure.com/contoso-ltd/MyFirstProject/_git/new-contoso-repo
Please find more detailed information in this document.
In Azure DevOps Import will happen from source repository URL's which are reachable from Azure DevOps Services which are basically running on cloud and require HTTPS reachability.
If BitBucket Server is hosting Repository on Private Network , it will not be reachable from Azure DevOps and hence we need the method provided by Walter above.
Related
I tried to create pull request in Sourcetree,
but it asked me to set Remote Project Configuration.
In the remote setting there is only 3 host types for this: Bitbucket, GitHub, Bitbucker Server.
there is no option for Azure DevOps
Is there is a solution for this?
I think you have an old version - that explains why the AzureDevOps option is missing.
UPDATE: Try adding a local repository instead remote
I have used Azure DevOps 'Import Repository' to clone a repo from GitHub so that I can maintain a personal copy. I don't see any way to maintain the remote connection to GitHub so that I can merge in upstream changes.
Does Azure DevOps have such functionality or will I need to do this merging manually/locally?
No there is no way to treat Azure DevOps as a fork for GitHub. You need to manually perform merges and push/pull to and from both GitHub and Azure DevOps.
Not sure why you'd want to use Azure DevOps for your personal clone. As an alternative you can use GitHub for source code repository and link Azure Boards to GitHub and use Azure Pipelines to build, if those are your primary reason to use Azure DevOps.
I am planning to use Azure Devops for code repository. I was able to add code to Git repository as you can see in below screenshot (I have a master branch). I am trying to push this to Azure Devops but while click on sync from Team Explorer, I am not able to see those three options:
Publish to GitHub
Push to Azure Devops service
Push to Remote Repository
Am I missing something? I really need to push this git repo to Azure Devops. I have already created a project in Azure Devops to push into that. Please help.
I am testing out how Azure Boards and Github work. I connected my repo from our organisation and connected Github and seems fine but in the Azure DevOps project i have the default Git repo and when i try to create a branch for a issue i can only choose the default Azure DevOps repo and no Github repo.
/donnib
Unfortunately, the Azure Boards app for GitHub doesn't support branch. By installing the Azure Boards app for GitHub, you can configure and manage the connections of your Azure Boards projects (hosted service only) with your GitHub.com repositories. By connecting your Azure Boards projects with GitHub.com repositories, you support linking between GitHub commits and pull requests to work items. You can use GitHub for software development while using Azure Boards to plan and track your work.
I think it isn't possible to create an Azure Pipeline from Yaml when hosting the Git repository in GitLab. Is anyone able to confirm or deny this?
I think it is possible for GitHub, BitBucket and Azure Repos Git.
You're right, according to the docs the YAML supported only in Azure Repos Git, Bitbucket Cloud, GitHub and GitHub Enterprise Server: