Skip to content

HainanZhao/Git-Azure-Devops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Git-Azure-Devops

There are some missing pieces in the integration between git and Azure Devops. We face a problem to create pull request in command line or create a pull request in SourceTree.

Thanks to Terje Sandstrom, I've consolidated the steps in his blog into one powershell scripts. http://hermit.no/visual-studio-and-azure-devops-git-extend-the-git-command-line-with-server-commands-part-2/

Prerequsite

Run

Run the powershell scripts, paste in the git access token.

Commands

git prb : Create pull request to the target branch e.g. git prb master

git prm : Create pull request to master branch e.g. git prm

git prm --title : To add a custom title e.g. git prm --title "Testing pull request to Azure Devops using command line"

git prmc : Create pull request with auto complete. You can also use the --title the same way.

git web : Open Chrome and go to your pending pull request page.

Integrate with SourceTree

Go to Tools > Options > Custom Actions

Create Pull Request

  • Add your caption: Create Pull Request
  • Script to Run : git
  • Parameters: prmc

Go to the pending pull request in browser

  • Add your caption: Check Pull Request
  • Script to Run : git
  • Parameters: web

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published