Skip to content

Github Enterprise

Jason Karns edited this page Jun 7, 2018 · 2 revisions

GitHub Enterprise

~/.config/git/config.local
[includeIf "gitdir:~/code/{client}/**"]
	path = config.{client}
~/.config/git/config.{client}
[user]
    email = jkarns@client.com

[hub]
    host = github.client.com

[url "git@github.client.com:"]
    insteadOf = https://github.client.com/
.config/bashrc.d/git.bash
alias hubs='GITHUB_HOST=github.client.com hub'
alias gists='GITHUB_URL=https://github.client.com gist'
~/.config/hub
github.client.com:
- protocol: https
  user: jkarns
  oauth_token: <PRECIOUS TOKEN HERE>
~/.config/vim/after/plugin/fugitive.vim
let g:fugitive_github_domains = [ 'https://github.client.com' ]
~/.config/vim/after/plugin/rhubarb.vim
let g:github_enterprise_urls = [ 'https://github.client.com' ]