Re: How do I copy a branch & its config to a new name?
- From
Jeff King <peff@peff.net>
- Date
- Mar 22, 2017, 22:58 UTC
- Message-ID
- <20170322225800.3h2mnnmmj2hbo36c@sigill.intra.peff.net>
- In-Reply-To
- <CACBZZX7NDa5o1xSu4HgZ4=kG3mx3U6ja7f3E4yAkFOHDsLdMjA@mail.gmail.com>
On Wed, Mar 22, 2017 at 11:46:14PM +0100, Ævar Arnfjörð Bjarmason wrote:
Show 5 quoted lines
> But both of these are really just a limited special case for what I'd > really like, which is given branch "foo", copy it and all its > configuration to a new name "bar". I.e. both of the hacks above only > set up the correct tracking info, but none of the other branch.* > variables I may have set.
I thought that's what "git branch -m" was for, though I don't know how thorough it is about finding config that refers _to_ your branch (I know it handles config _for_ your branch).
There might be room for improvement there.
-Peff