git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Jeffrey Walton <noloader@gmail.com>
To: Git List <git@vger.kernel.org>
Subject: Please provide a one-liner for syncing with the original/source project
Date: Sun, 17 Nov 2019 15:56:48 -0500	[thread overview]
Message-ID: <CAH8yC8m45JGwjd-vRaE-05=MmDHq4qxWBh-wtsK09xuW+mp3mg@mail.gmail.com> (raw)

Hi Everyone,

One of my common workflows is, clone a open source project like Git,
OpenSSL, etc. Then make some changes and push my changes to my clone.
And maybe submit a pull request to the original/source project. After
the initial clone my project becomes out-of-sync with the project of
interest.

I have to do something special to get my copy of the project back
in-sync with the original/source project. It is not trivial to get
back in sync. It takes three or four separate commands if all goes
well. And in my case, I have to look up the instructions because they
are not ingrained in memory (like
https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/syncing-a-fork).

This sync workflow is so common Git should be providing it. Anyone who
has cloned from GitHub, GitLab, etc needs it. Folks should not need to
do special things for common workflows. When sites like GitHub and
GitLab are providing explicit instructions to sync with the
original/source project should signal it is common and people need it.

I'd like a one-line command to resync with the original or source
project (and not my clone). I think a 'git sync' command would be a
good addition to the Git tools.

It would be nice if sites like GitHub would value add the ' upstream =
...' to a .git/config, but that is not Git's problem. I'll settle for
manually adding upstream so 'git sync' just works.

Thanks in advance.

             reply	other threads:[~2019-11-17 20:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-17 20:56 Jeffrey Walton [this message]
2019-11-18 10:59 ` Please provide a one-liner for syncing with the original/source project Pratyush Yadav

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH8yC8m45JGwjd-vRaE-05=MmDHq4qxWBh-wtsK09xuW+mp3mg@mail.gmail.com' \
    --to=noloader@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).