From: Iain Sandoe <idsandoe@googlemail.com>
To: Segher Boessenkool <segher@kernel.crashing.org>
Cc: "Richard Earnshaw (lists)" <Richard.Earnshaw@arm.com>,
"gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>,
Joseph Myers <joseph@codesourcery.com>
Subject: Re: [wwwdocs] Git transition - how to access private user and vendor branches
Date: Mon, 13 Jan 2020 09:04:00 -0000 [thread overview]
Message-ID: <2F7B6ADB-290F-47B5-A1AD-A6BC716085D7@googlemail.com> (raw)
In-Reply-To: <20200113003756.GF3191@gate.crashing.org>
Segher Boessenkool <segher@kernel.crashing.org> wrote:
> On Sun, Jan 12, 2020 at 01:31:13PM +0000, Iain Sandoe wrote:
>> Segher Boessenkool <segher@kernel.crashing.org> wrote:
>>> Why would people want to name their local branches "me/thing" instead
>>> of just "thing", btw?
>>
>> itâs a way of making things distinct and allows the push rule to be
>> present for them
>> but absent for more dangerous pushes.
>
> That's a weird setting imo. Potentially destroying your own work *is*
> dangerous :-)
>
> Pretty much anything you mess up locally in Git can be easily restored.
> Restoring remote branches can be much harder. To start with, this
> requires knowing *what* to restore, which can require direct access to
> the remote repository, or its backups. So doing an unexpected non-ff
> push is probably not a good idea.
>
> You can also add a "+" manually when you want to overwrite the remote
> branch, or configure your setup to always do that for certain branches.
(FAOD) I wasnât suggesting to add the â+â (I never set anything to force
push)
just commenting that putting oneâs own work in a separate namespace isnât
a bad plan.
> It all depends on personal preference and work habits, of course. But
> I think it isn't the best idea to recommend people take up dangerous
> habits :-)
>
>> So if one renames origin to something else
>> e.g. fsf or upstream, and there are no automatic push rules, itâs one
>> more small
>> protection against an accidental push?
>
> If you haven't configured push rules for your remote, you get what you
> have in "push.default" for that remote. Since Git 2.0 the default has
> been "push.default = simple", and no non-ff pushes are allowed by default
> anyway?
>
> I guess it makes some sense to group together locally the branches you
> have in users/ on our shared server. But then "me/" is not a great
> name :-)
no, I usually duplicate the âuseridâ.
Iain
prev parent reply other threads:[~2020-01-13 8:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-09 16:55 Richard Earnshaw (lists)
2020-01-10 11:08 ` Richard Earnshaw (lists)
2020-01-11 15:54 ` Segher Boessenkool
2020-01-11 16:35 ` Richard Earnshaw (lists)
2020-01-13 0:38 ` Jason Merrill
2020-01-12 19:02 ` Iain Sandoe
2020-01-13 2:15 ` Segher Boessenkool
2020-01-13 9:04 ` Iain Sandoe [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2F7B6ADB-290F-47B5-A1AD-A6BC716085D7@googlemail.com \
--to=idsandoe@googlemail.com \
--cc=Richard.Earnshaw@arm.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=joseph@codesourcery.com \
--cc=segher@kernel.crashing.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.
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).