Skip to content

Instantly share code, notes, and snippets.

@PedroCaicedoDev
Last active January 11, 2021 16:36
Show Gist options
  • Select an option

  • Save PedroCaicedoDev/42c5c38d9229ba3595006bd6384b3324 to your computer and use it in GitHub Desktop.

Select an option

Save PedroCaicedoDev/42c5c38d9229ba3595006bd6384b3324 to your computer and use it in GitHub Desktop.
Host gitolite-as-alice
HostName git.company.com
User git
IdentityFile /home/whoever/.ssh/id_rsa.alice
IdentitiesOnly yes
Host gitolite-as-bob
HostName git.company.com
User git
IdentityFile /home/whoever/.ssh/id_dsa.bob
IdentitiesOnly yes
# Use
# git remote add alice git@gitolite-as-alice:whatever.git
# git remote add bob git@gitolite-as-bob:whatever.git
# You must change original clone name repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment