From: ParetoOptimalDev <pareto.optimal@mailfence.com>
To: git@vger.kernel.org
Subject: With git+ssh deprecated, how can multiple git identities be managed?
Date: Wed, 26 Apr 2023 00:59:30 -0500 [thread overview]
Message-ID: <87h6t3rxod.fsf@mailfence.com> (raw)
Hello all.
For instance with git+ssh I would have the following in my
~/.ssh/config:
```
Host paretooptimal-personal
User git
HostName github.com
IdentityFile /run/agenix/pareto_optimal_personal_priv
Host paretooptimal-work
User git
HostName github.com
IdentityFile /run/agenix/pareto_optimal_work_priv
```
Then I could use it like `git clone
git+ssh://paretooptimal-work/some-work/codebase.git` or
`git+ssh://paretooptimal-personal/some-personal/codebase.git`
respectively.
The problem is that since this is deprecated a tool I use in emacs called forge
doesn't want to add support for this type of git url because it's being deprecated:
https://github.com/magit/forge/issues/545
That's valid and understandable, but I feel like I have a valid use case
that calls into question the deprecation of these urls.
So my desire here is to have a solution for multiple git identities that
isn't deprecated and is supported in forge, or is a feature that can be
added using non-deprecated git functionality.
Un-deprecating git+ssh urls would be one possible solution, but if I had
to bet I'd say the case I make won't be compelling enough ;)
Either that, or some other way of accomplishing this is possible. Or
perhaps, this isn't a use case the git project thinks is worth
supporting.
I also have another case for `git+ssh` urls to create private git
repositories authenticated by ssh key. I'm fairly sure there isn't a
better solution for that.
If one needs a more concrete example of the private git repository use
case using `git+ssh`, I typically use it to create private Nix flakes.
Nix flakes: https://www.tweag.io/blog/2020-05-25-flakes/
Thank you for your time and consideration.
next reply other threads:[~2023-04-26 6:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-26 5:59 ParetoOptimalDev [this message]
2023-04-26 6:25 ` With git+ssh deprecated, how can multiple git identities be managed? Erik Cervin Edin
2023-04-26 6:38 ` ParetoOptimalDev
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=87h6t3rxod.fsf@mailfence.com \
--to=pareto.optimal@mailfence.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.
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).