logoalt Hacker News

embedding-shapetoday at 12:04 PM1 replyview on HN

It's actually about git account switching as far as I can tell, which does make sense, you can have multiple "git" users indeed. Maybe it's the wording that is wrong? Read "account" as "user" and it might make more sense :)

  # in ~/.gitconfig
  [includeIf "gitdir:/home/user/projects/embedding-shapes/"]
    path = /home/user/.gitconfig-embedding-shapes

  # in ~/.gitconfig-embedding-shapes
  [user]
  name = embedding-shapes
  email = [email protected]

  [core]
  sshCommand = ssh -i /home/user/.ssh/id_embedding-shapes
That's one of my git "accounts", currently I have four in total, one being my "real identity", other are pseudo-anonymous users.

Replies

sevensortoday at 1:13 PM

Fair point. This makes much more sense when you make it about your git identity + ssh configuration.