Skip to content
Discussion options

You must be logged in to vote

Here is what worked for me:

# ~/.ssh/config
Host gitlab-bigfoot
  Hostname gitlab.com
  User git   # convenient, used below...
  IdentityFile ~/.ssh/id_bigfoot_gitlab_ed25519
  IdentitiesOnly yes    # often recommended in this situation
  AddKeysToAgent yes    # might be macOS specific
  UseKeychain yes    # macOS specific

This works because Host maps to Hostname. When adding a Git remote to JJ use e.g.:

jj git remote add origin gitlab-bigfoot:forest/lurking.git

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@xpe
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by xpe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants