[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: admin/notes/git-workflow and git-new-workdir
From: |
Štěpán Němec |
Subject: |
Re: admin/notes/git-workflow and git-new-workdir |
Date: |
Sun, 28 Jul 2019 19:53:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) |
On Sun, 28 Jul 2019 17:34:03 +0200
Andreas Schwab wrote:
> git-new-workdir is obsolete. Its functionality has been properly
> implemented by git worktree.
That was helpful, thank you!
So instead of
git clone <membername>@git.sv.gnu.org:/srv/git/emacs.git master
(cd master; git config push.default current)
./master/admin/git-new-workdir master emacs-26
cd emacs-26
git checkout emacs-26
the current recipe would be
git clone <membername>@git.sv.gnu.org:/srv/git/emacs.git master
cd master
git config push.default current
git worktree add ../emacs-26 emacs-26
(The second cd is now unnecessary, "git worktree" sets up and checks out
the emacs-26 remote tracking branch in the new working tree automatically.)
--
Štěpán