Switch GitHub accounts in one click. Cambia de cuenta de GitHub con un clic.
GitSwitcher shows your active gh account in the menu bar and switches to another one instantly — exactly like gh auth switch, without opening a terminal.
GitSwitcher muestra en la barra de menús tu cuenta activa de gh y cambia a otra al momento — igual que gh auth switch, sin abrir la terminal.
brew install --cask marcosesperon/tap/gitswitcher
A friendly face for gh.Una cara amable para gh.
gh already supports several accounts per host and, as your git credential helper, decides which account git push uses. GitSwitcher just puts that one click away.
gh ya admite varias cuentas por servidor y, como credential helper de git, decide con qué cuenta se hace git push. GitSwitcher solo lo deja a un clic.
No tokens storedNo guarda tokens
Accounts come from gh auth status. Credentials stay in gh's keychain entries; GitSwitcher never sees them.Las cuentas salen de gh auth status. Las credenciales siguen en el llavero de gh; GitSwitcher nunca las ve.
Always in syncSiempre sincronizada
Switch from the terminal and the menu bar updates by itself. Sign in a new account and it shows up.Cambia desde la terminal y la barra se actualiza sola. Inicia sesión con otra cuenta y aparece.
Small on purposePequeña a propósito
One menu, one settings window, no background services. In 9 languages.Un menú, una ventana de ajustes y nada en segundo plano. En 9 idiomas.
Make it yoursHazla tuya
An icon and a color per account — a blue briefcase for work, a green house for personal — so you know which one is active at a glance.Un icono y un color por cuenta — un maletín azul para el trabajo, una casa verde para lo personal — para saber de un vistazo cuál está activa.
What you need.Qué necesitas.
Languages:Idiomas: English, Español, Français, Deutsch, Italiano, Português (Brasil), 日本語, 简体中文, 한국어.
Homebrew recommendedrecomendado
Installs the app and, if missing, GitHub CLI too.Instala la app y, si falta, también GitHub CLI.
brew install --cask marcosesperon/tap/gitswitcherManual downloadDescarga manual
- Download the latest
GitSwitcher-x.y.z.zipfromDescarga el últimoGitSwitcher-x.y.z.zipde Releases. - Unzip it and move GitSwitcher.app to Applications.Descomprímelo y mueve GitSwitcher.app a Aplicaciones.
- The app isn't signed with an Apple Developer ID, so macOS blocks the first launch. Allow it in System Settings › Privacy & Security › Open Anyway, or run:La app no está firmada con un Developer ID de Apple, así que macOS bloquea la primera apertura. Permítela en Ajustes del Sistema › Privacidad y seguridad › Abrir igualmente, o ejecuta:
xattr -dr com.apple.quarantine /Applications/GitSwitcher.appGet your accounts in the menu.Tus cuentas, en el menú.
Four steps, done once. The app's Settings › Guide checks each one on your Mac and can run the commands for you. Cuatro pasos que se hacen una vez. En la app, Ajustes › Guía comprueba cada uno en tu Mac y puede lanzar los comandos por ti.
Install GitHub CLIInstala GitHub CLI
Skip it if you installed GitSwitcher with Homebrew. Other options atSáltatelo si instalaste GitSwitcher con Homebrew. Otras opciones en cli.github.com.
brew install ghSign in with each accountInicia sesión con cada cuenta
Run it once per GitHub account (work, personal…). gh opens the browser and keeps the credentials in the macOS keychain. In the app: Settings › Accounts › Add Account…Ejecútalo una vez por cada cuenta de GitHub (trabajo, personal…). gh abre el navegador y guarda las credenciales en el llavero de macOS. En la app: Ajustes › Cuentas › Añadir cuenta…
gh auth loginLet git use the active accountHaz que git use la cuenta activa
Makes gh provide the credentials for
git pushandpullon github.com, so they follow the account you pick in the menu.Hace que gh dé las credenciales paragit pushypullen github.com, así siguen a la cuenta que elijas en el menú.gh auth setup-gitCommit authorAutor de los commitsoptionalopcional
Switching accounts doesn't change who signs your commits. Either turn on Settings › Accounts › Also change the git author when switching, or set the author per folder with
includeIf:Cambiar de cuenta no cambia quién firma tus commits. O activas Ajustes › Cuentas › Cambiar también el autor de git, o fijas el autor por carpeta conincludeIf:# ~/.gitconfig [includeIf "gitdir:~/work/"] path = ~/.gitconfig-work # ~/.gitconfig-work [user] name = Octo Cat email = octo@work.example
Three tabs and an update window.Tres pestañas y una ventana de actualización.
GuideGuía
Checks your Mac step by step and tells you what's missing.Comprueba tu Mac paso a paso y te dice qué falta.
- gh installed (version and path).gh instalado (versión y ruta).
- Accounts signed in to gh.Cuentas con sesión en gh.
- git using gh for credentials.git usando gh para las credenciales.
- Copy or Open in Terminal for every command.Copiar o Abrir en Terminal en cada comando.
AccountsCuentas
Give each account a short name for the menu bar and add new ones.Pon a cada cuenta un nombre corto para la barra y añade cuentas nuevas.
- Alias, icon and color per account (“Work” with a blue briefcase, “Personal” with a green house…).Alias, icono y color por cuenta («Trabajo» con un maletín azul, «Personal» con una casa verde…).
- Add Account… runs
gh auth loginin Terminal.Añadir cuenta… lanzagh auth loginen Terminal. - Optional global git author per account, prefilled from your GitHub profile (private emails use the
noreplyaddress).Autor global de git por cuenta, opcional y rellenado desde tu perfil de GitHub (si el correo es privado, se usa elnoreply).
UpdatesActualizaciones
GitSwitcher tells you when a new version is out and shows what changed.GitSwitcher te avisa cuando sale una versión nueva y te enseña qué cambia.
- Checks GitHub once a day (you can turn it off) or on demand with Check for Updates…Mira GitHub una vez al día (se puede desactivar) o cuando quieras con Buscar actualizaciones…
- Install and Relaunch downloads the new version, verifies its checksum and replaces the app.Instalar y reiniciar descarga la versión nueva, comprueba su huella y sustituye la app.
- Installed with Homebrew? It runs
brew update && brew upgrade --cask gitswitcherinstead.¿La instalaste con Homebrew? Entonces lanzabrew update && brew upgrade --cask gitswitcher.
General
The basics.Lo básico.
- Open at login.Abrir al iniciar sesión.
- Show only the icon in the menu bar.Mostrar solo el icono en la barra de menús.
- Check for updates automatically.Buscar actualizaciones automáticamente.