Change github account in terminal

$git credential-osxkeychain erase
host=github.com
protocol=https
[Press Return]

To add your new account you can do the following commands:
git config –global user.name “YOUR NAME”
git config –global user.email “YOUR EMAIL ADDRESS”