Re: [PATCH 0/1] Improve automatic setup of tracking for new branches
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Aug 2, 2021, 21:17 UTC
- Message-ID
- <nycvar.QRO.7.76.6.2108022316370.55@tvgsbejvaqbjf.bet>
- In-Reply-To
- <7b50ebc6-7b28-412d-b124-9bd54750c922@gmail.com>
Hi Philippe,
On Fri, 30 Jul 2021, Philippe Blain wrote:
Show 11 quoted lines
> Recently I've even been using only the terminal with Gitgitgadget: > I use 'git branch --edit-description' > to write my cover letter, and then use the 'gh' GitHub CLI to open my PR: > > $ git config --get-regexp alias.desc* > alias.desc-title !git config branch.$(git branch --show-current).description | > head -1 > alias.desc-body !git config branch.$(git branch --show-current).description | > tail -n+3 > $ gh pr create --title "$(git desc-title)" --body "$(git desc-body)" --head > phil-blain:$(git branch --show-current)
I bet you could streamline this even further by defining a `gh` alias: https://cli.github.com/manual/gh_alias_set
Ciao, Dscho