---
title: "make a pr from command line using hub"
description: "install hub first with brew: brew install hub then use a simple command, like at the example below: hub pull-request -m \"best pr ever\" -b oozou:develop -h feature/awesome-improvements"
canonical: https://oozou.com/til/make-a-pr-from-command-line-using-hub-3
locale: en
date: 2020-10-13
topic: shell
---

# make a pr from command line using hub

> install hub first with brew: brew install hub then use a simple command, like at the example below: hub pull-request -m "best pr ever" -b oozou:develop -h feature/awesome-improvements

Published: 2020-10-13 · Topic: [shell](https://oozou.com/til-topics/shell) ([markdown](https://oozou.com/til-topics/shell.md))

install **hub** first with brew:
*brew install hub*
then use a simple command, like at the example below:
*hub pull-request -m "best pr ever" -b oozou:develop -h feature/awesome-improvements*

or even smarter:

```
hub pull-request -m "best pr ever" -b oozou:develop -h $(git rev-parse --abbrev-ref HEAD)
```

for more detailed info how to make pull requests see at *hub pull-request --help*

---

Contact OOZOU: hello@oozou.com · +66 2544 0000 · https://oozou.com/contact

More for AI agents: https://oozou.com/llms.txt · every page has a markdown twin at its URL plus ".md"
