画竜点睛を衝く@mapyo

日々やった事をつらつらと書くブログです

hubでGitHub Enterpriseでhttpが使えるようにする

https://github.com/github/hub/pull/488

まだプルリクの段階だけど、使えるところまで出来たのでメモ

1. hubのインストール

$ git clone https://github.com/github/hub
$ git checkout enterprise-http
$ cd hub
$ rake install

2. GitHub Enterpriseでhttpが使えるようにする設定

cd (GitHub Enterpriseのリポジトリ)

# GitHub Enterpriseのホスト名を設定
git config --add hub.host git.my.org

# GitHub Enterpriseでhttpが使えるようにする設定
vim ~/.config/hub

# 以下を追加
---
git.my.org:
- user: mapyo
  protocol: http

git.my.orgmapyo(ユーザ名)は適宜置き換えてください。

いい感じだなー!

hub browseくらいしかまだ試してません!