[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: elpa.git and `new-master`
From: |
Boruch Baum |
Subject: |
Re: elpa.git and `new-master` |
Date: |
Wed, 16 Dec 2020 01:47:53 -0500 |
User-agent: |
NeoMutt/20180716 |
On Tue, 15 Dec 2020 16:35:44 -0500, Stefan Monnier wrote:
> > On Tue, 15 Dec 2020 10:57:25 -0800, Stephen Leake wrote:
> >> As a result, I decided to create a fresh `new-master` branch which
> >> doesn't share its history with `master`. This new branch will replace
> >> `master` in the coming days.
> > In keeping with the Black Lives Matter movement, can we name this branch
> > "main" instead of "master"?
+1. Also, I discourage names of the form 'new-*' because it begs some
future eventuality requiring some 'new-new-*' or 'newer-*' or
'newest-*'or 'really-honestly-the-newest-*'.
> Only if you can tell me how to arrange elpa.git such that `git clone
> https://.../elpa.git` gives you the `main` branch instead of the
> `master` branch.
You don't need to perform any arranging; the operation acts on the
currently active upstream branch (see 'git help clone' first paragraph):
mkdir -p clone-test/{1,2}
cd clone-test/1
git init
touch a
git add a
git -am "add a"
git status
git branch main
git switch main
git status
cd ../2
git clone ../1
cd 1
git status
The example creates a new branch 'main' but you could just as well just
rename the master branch to main:
git branch -m master main
--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0
- Re: elpa.git and `new-master`, (continued)
- Re: elpa.git and `new-master`, Stephen Leake, 2020/12/15
- Re: elpa.git and `new-master`, Stephen Leake, 2020/12/15
- Re: elpa.git and `new-master`, Jonas Bernoulli, 2020/12/15
- Re: elpa.git and `new-master`,
Boruch Baum <=
- Re: elpa.git and `new-master`, Pankaj Jangid, 2020/12/16
- Re: elpa.git and `new-master`, Jean Louis, 2020/12/16
- Re: elpa.git and `new-master`, Alfred M. Szmidt, 2020/12/16
- Re: elpa.git and `new-master`, Joost Kremers, 2020/12/16
- Re: elpa.git and `new-master`, Jean Louis, 2020/12/16
- Re: elpa.git and `new-master`, Stefan Monnier, 2020/12/16