git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

Previous: Ben Boeckel
Message 20 of 20 in “Improve automatic setup of tracking for new branches”
  1. 0/1 Improve automatic setup of tracking for new branchesBen Boeckel, Jul 28, 2021
  2. 1/1 config: support setting up a remote tracking branch upon creationBen Boeckel, Jul 28, 2021
  3. Junio C HamanoJul 28, 2021
  4. Ben BoeckelJul 28, 2021
  5. Junio C HamanoJul 28, 2021
  6. 0/1 Improve automatic setup of tracking for new branchesBen Boeckel, Jul 29, 2021
  7. 1/1 config: support a default remote tracking setup upon branch creationBen Boeckel, Jul 29, 2021
  8. Philippe BlainJul 30, 2021
  9. Ben BoeckelJul 30, 2021
  10. Junio C HamanoJul 30, 2021
  11. Ævar Arnfjörð BjarmasonAug 2, 2021
  12. Ben BoeckelAug 2, 2021
  13. Ævar Arnfjörð BjarmasonAug 2, 2021
  14. Junio C HamanoJul 30, 2021
  15. Ben BoeckelJul 30, 2021
  16. Philippe BlainJul 30, 2021
  17. Ben BoeckelJul 30, 2021
  18. Philippe BlainJul 30, 2021
  19. Ben BoeckelJul 30, 2021
  20. Johannes SchindelinAug 2, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.