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

[RFC] new subcommand: git sync

From
JLJean-Marie Lemetayer <jeanmarie.lemetayer@gmail.com>
Date
Feb 26, 2021, 09:08 UTC
Message-ID
<CAAdc0hwmR7BF53_66LNaceLrkFPDphU-y2sLEGB_1YoR5ErQsg@mail.gmail.com>
Hi folks,

I created a new "git sync" sub-command a few months ago to deal with the pull request workflow.

Its goals are to:
 - keep all configured branches synchronized with the remotes (--set-upstream)
 - do not touch your wip feature branches (which has diverged from upstream)
 - prune the remotes

As I use it on a daily basis, to synchronize the remotes and then be able to quickly rebase my pull requests. I think it's worth sharing. What do you think?

For now it is a simple shell script available here: https://github.com/jmlemetayer/one-time-setup/blob/main/git-sync

If you think it's a good idea, I'll propose a series of patches with the new sub-command, the manual page and the associated tests.

Best regards, Jean-Marie Lemetayer

Next: Ævar Arnfjörð Bjarmason
Message 1 of 7 in “[RFC] new subcommand: git sync”
  1. Jean-Marie LemetayerFeb 26, 2021
  2. Ævar Arnfjörð BjarmasonFeb 26, 2021
  3. Randall S. BeckerFeb 26, 2021
  4. Jean-Marie LemetayerMar 1, 2021
  5. Randall S. BeckerMar 1, 2021
  6. Junio C HamanoFeb 26, 2021
  7. Junio C HamanoFeb 26, 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.