8000 GitHub - luis-sousa-pinto/gitctx: gitctx is a tool that allows you to switch from a GitHub account to another in a fast way
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

gitctx is a tool that allows you to switch from a GitHub account to another in a fast way

Notifications You must be signed in to change notification settings

luis-sousa-pinto/gitctx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitctx: use multiple GitHub's SSH accounts without headaches

This repository contains gitctx tool.

What's gitctx?

gitctx is a tool that allows you to switch from a GitHub account to another in a fast way. Currently the only way to support multiple accounts on Github is to add to the ~/.ssh/config file multiple Hosts (check here or use the .gitconfig file with the includeIf directive here).

Using this tool you can switch from an account (referred as context) to another just like in the example:

demo

Help

Usage:
  add [OPTIONS]

Application Options:
      --add        Create a new host in the selected config file.
      --rm=        Remove an existing host in the selected config file.
  -s, --sshconfig= Set the path of the config (default: ~/.ssh/config).
      --hostname=  Set the hostname to use for context change (default: github.com).
      --config=    Set the path of the gitctx folder (default: ~/.gitctx).

Help Options:
  -h, --help       Show this help message

Installation

$ go install github.com/Matrix86/gitctx/cmd/gitctx@latest

From sources

$ git clone git@github.com:Matrix86/gitctx.git

$ cd gitctx

$ make install

Completion

To enable the shell completion, you need to move add the following line to the end of the ~/.bashrc file:

. $HOME/.gitctx/gitctx.bash

About

gitctx is a tool that allows you to switch from a GitHub account to another in a fast way

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 96.4%
  • Makefile 2.8%
  • Shell 0.8%
0