Damian Ubowski
Damian Ubowski

Reputation: 407

Create pull requests in Git Bash to Azure DevOps

We have ability to create pull requests to GitHub from Git Bash with command hub pull-request. Can I create pull request from Git Bash into Azure DevOps?

Upvotes: 8

Views: 9433

Answers (2)

Hainan Zhao
Hainan Zhao

Reputation: 2092

I've created one PowerShell script to streamline the process. You can check out the details here

Git Hub Repo

Basically what you need to do is:

  • Get the Azure DevOps access token
  • Pass the token to the PowerShell and let it run the setup steps.

Upvotes: 2

Leo Liu
Leo Liu

Reputation: 76670

Can I create pull request from Git Bash into Azure DevOps?

I think the answer is yes. We could expand the Git aliases with VSTS CLI commands to achieve it.

There is VSTS CLI interface that we could configure to use git aliases including creating pull requests. Also, we could expand the Git aliases with VSTS CLI commands to create pull requests.

For the details, you can check this document:

Visual Studio and Azure DevOps Git: Extend the git command line with server commands–Part 2

Hope this helps.

Upvotes: 6

Related Questions