Skip to content

Switch

gitzy switch

Switch to a different GitHub profile

Synopsis

Switch to a different GitHub profile.

This command will backup your current ~/.gitconfig and ~/.git-credentials, then replace them with the files from the selected profile.

Backups are stored in ~/.gitzy/backups// for safety.

gitzy switch <profile> [flags]

Examples


  # Switch to the work profile
  gitzy switch work

  # Switch to the personal profile
  gitzy switch personal

Options

  -h, --help   help for switch

Options inherited from parent commands

      --docs   Show embedded documentation

SEE ALSO

  • gitzy - Manage multiple GitHub identities and switch between them easily.
Auto generated by spf13/cobra on 7-Jul-2025