logoalt Hacker News

sevensortoday at 12:00 PM2 repliesview on HN

Github account switching. A git account is not an idea that makes sense.


Replies

embedding-shapetoday at 12:04 PM

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.
show 1 reply
christoph-heisstoday at 1:43 PM

Yeah. Unfortunately, just goes to show how many people think Git = Github.