# Using Github Hub to Create an Issue and Streamline Your Branch Workflow

DevFeed: [Using Github Hub to Create an Issue and Streamline Your Branch Workflow](<https://devfeed.tech/articles/using-github-hub-to-create-an-issue-and-streamline-your-branch-workflow-28169.md>)

Original publisher: [Read original article](<http://fuzzyblog.io/blog/git/2019/11/24/using-github-hub-to-create-an-issue-and-streamline-your-branch-workflow.html>)

Author: Fuzzygroup

Published: 2019-11-24T00:00:00Z

Content type: tutorial

Language: en

Sources: [Scott Johnson](<https://devfeed.tech/sources/scott-johnson.md>)

Topics: [GitHub](<https://devfeed.tech/topics/github.md>), [GitHub Issues](<https://devfeed.tech/topics/github-issues.md>), [Git](<https://devfeed.tech/topics/git.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Pull Request](<https://devfeed.tech/topics/pull-request.md>), [Shell](<https://devfeed.tech/topics/shell.md>), [Homebrew](<https://devfeed.tech/topics/homebrew.md>)

Tags: [authentication](<https://devfeed.tech/tags/authentication.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [git](<https://devfeed.tech/tags/git.md>), [github](<https://devfeed.tech/tags/github.md>), [github-issues](<https://devfeed.tech/tags/github-issues.md>), [install](<https://devfeed.tech/tags/install.md>), [pull-request](<https://devfeed.tech/tags/pull-request.md>), [software-engineering](<https://devfeed.tech/tags/software-engineering.md>)

## AI overview

A practical tutorial on using GitHub Hub from the command line to support an issue-based Git workflow. It covers installing hub on OSX with Homebrew, resolving authentication errors, creating GitHub issues, and using issue numbers to create branches and pull requests.

## Source excerpt

My git workflow is pretty simple. Here are the tasks and (where I do them): Create an issue that logs what I'm working on (github website) Use the issue's id number to make a branch (command line) Work on the branch (editor) Add / Commit / Push to the Branch (command line) Create a Pull Request (github website) Github has a tool called Github Hub - Hacker News Discussion Thread - which allows you to do more operations on the command line than the normal, canonical git actions (add / commit / push). Henceforth I will be referring to this tool as hub. Installing Github Hub on OSX To install hub on OSX, you can use brew: brew install hub If You Can't Login My first usage of github hub was actually fairly crappy: ❯ hub issue create -m "Update Faq for Why Do Things Appear on the Dashboard" Error creating issue: Unauthorized (HTTP 401) Bad credentials If you hit this error then the first result is a very long Github Issues page. The long and the short of it is that you need to delete hub's config file: rm ~/.config/hub After this delete, any operation should cause hub to ask you to log in. And, yes, hub does support Github's two factor authentication so there is that to contend with also. Note: If you still can't use hub after deleting this file then you may have credentials defined in a shell config file like .zshrc or .bashrc. Read the above linked issue for more. You also might have better understanding by using the verbose option: HUB_VERBOSE=1 hub issue create "Update Faq for Why Do Things Appear on the Dashboard" And Creating an Issue Use the -m flag to create the issue with a title. This avoids hub opening an editor (which is fine but slows down the process and using hub is to avoid the slowdown): ❯ hub issue create -m "Automate Checking RSS Feeds" https://github.com/gochangeme/web_change_me_now/issues/465 And there you have an issue number so now you can can just: git branch 465 git co 465 And, yes, I suspect there is a compound command which creates a branch and