Skip to content

Instantly share code, notes, and snippets.

@neeraj-htp
Forked from yermulnik/config.yml
Created April 19, 2022 05:29
Show Gist options
  • Save neeraj-htp/9b3c480541839f46202119234614ebaf to your computer and use it in GitHub Desktop.
Save neeraj-htp/9b3c480541839f46202119234614ebaf to your computer and use it in GitHub Desktop.
GH CLI multi-account switch
git_protocol: ssh
aliases:
collaborators: repo-collab
personal: '!cp ~/.config/gh/hosts.yml.personal ~/.config/gh/hosts.yml && gh auth status'
work: '!cp ~/.config/gh/hosts.yml.work ~/.config/gh/hosts.yml && gh auth status'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment