Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

  1. Clone repo
git clone git@github.com:neil-lobo/github-change.git
  1. Make script executable
cd github-change/src
chmod u+x github-change
  1. Add src to your PATH variable

  2. Create src/accounts.json file

    • Follow src/example.accounts.json file
  3. Optionally, turn on auto signing for commits

git config --global commit.gpgsign true
  1. Add to .bashrc file or equivalent
eval "$(ssh-agent -s)" > /dev/null
github-change 2> /dev/null
  1. Optionally, create an alias in .bashrc file or equivalent
alias ghc='github-change'

Usage

Show currently loaded account

github-change -s

Switch accounts

github-change -c [account-name]

About

small script to switch git and github credentials

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages