Create "Pull Request" in Sourcetree for Azure DevOps - azure-devops

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

Related

Azure pipeline error "Git fetch failed with exit code: 128"

I am trying to create a build pipeline in azure devops using this blog:
https://www.linkedin.com/pulse/ci-cd-azure-databricks-using-devops-deepak-rajak.
I have created a service connection with the my repository. I am getting this error and I can't resolve it. I think it is picking the wrong URL.
Error:
As you noted, this error means that the Git repository URL is wrong.
I have created a service connection with the my repository.
You need to correct the repo URL from the service connection. Not sure which Git repository you are using.
However, please note that URL should not be the project URL (e.g https://github.com/xxx/test).
It should be something like this: https://github.com/xxx/test.git
Please control your permission settings in Version Control.
in Azure , project settings >> version control.
select repositories and look security for all git repositories.
"Project collection administrator"

Importing an existing local git repository into Azure Devops

My company has an old local git repository, which I'm trying to add to Azure Devops but so far, I've been unsuccessful (I've never setup a repository in Devops before, so I'm very new to this).
I've been trying to add this to devops by going into Repos > Import Repository, however when I attempt to import, I receive the following error:
I know this repository exists because I'm able to open this repository url via visual studio and work with the project within there, however when I attempt to import it into azure devops, I'm receiving that issue.
I've tried both providing authentication username & PAT....and I've attempted with no authentication. Neither seems to work.
Any idea what I'm doing wrong to get this imported into devops?
Thanks

Not able to see Push to AzureDevOps service in sync option Visual Studio 2019

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.

Migrating from Bitbucket Server to Azure DevOps

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.

Disable clone repository with https in own Azure DevOps Server installation

Is it possible to disable the cloning of a repo with https in my own Azure DevOps Server installation, when I want my users to use SSH only?
Thanks for helping. :)
Clone Repositoy in Azure DevOps Server
Disable clone repository with https in own Azure DevOps Server installation
Sorry for any inconvenience.
This behavior is by designed. There is no way to disable it at present.
You could add your request for this feature on our UserVoice site (https://developercommunity.visualstudio.com/content/idea/post.html?space=22), which is our main forum for product suggestions. Thank you for helping us build a better Azure DevOps.
Hope this helps.