It seems like the trick here is that it does not set the token in the gitconfig setup. It uses the defunkt hub tool . This is the shell for the git command, which, among other things, allows you to have the GITHUB_USER and GITHUB_TOKEN environment variables. This will override the settings in the local .gitconfig file.
Then, to make him a simple user, you pointed to aliased alias git=hub in his ZSH config . Then you can get the local file in which you set the environment variables and push your repository into the public world with all your personal information to the beat.
** NOTE for users of homegrown OSX, you can install the tool through the brew install hub .
source share