|
Namazu for hns による簡易全文検索 詳しくは 詳細指定/ヘルプを参照して下さい |
||||||||||||||||||||||||||||||||||||||||||
2015年02月22日(日) 旧暦 [n年日記] [更新:"2015/02/22 09:10:33"]#1 [gitolite] Adding new user
gitolite
は Unix の userid とは別に(関係なく)
設定出来るというのが利点。
ただし、(僕の理解では)同一 userid で、いくつもの機械から利用する、
というのは出来ない。
(通常の ssh 接続なら ~/.ssh/authorized_keys にいくつも書いておけるが、 そうは出来ない、という話) @ gitolite-admin side サーバ側の設定。:
@ 利用者側では、~/.ssh/config に次のように書いておく:host (virtual_name) user (gitolite_userid) hostname (Realhostname)例えば次のように書く host gitohost user userid hostname gitohost.example.comここで gitohost というのは自分で決めた勝手な名前。 userid は、上のサーバに登録した時に設定した名前。 サーバの方と一致していれば何でも良い もし次のように言われる時には、例えば(その相手の機械で) black list に登録されているのかも知れない。 ssh_exchange_identification: Connection closed by remote host fatal: Could not read from remote repository. @ git clone:
最初の clone をするには
git clone git@gitohost.example.com:REPOSITORYのようにする ( つっこみ )
#2 [git] ~/.gitconfig に log の format 指定をする
僕は、次のところを見て、
~/.gitconfig に次のように書いている。git g とすると(僕にとっては)
大変見やすい、小さくまとまった表示をする
[alias] g = log --graph --date=iso \ --format=\"%C(yellow)%h%C(reset) %C(magenta)[%ad]%C(reset)%C(auto)%d%C(reset) %s %C(cyan)@%an%C(reset)\" h = log --decorate= --graph --date=iso --format=\"%h [%ad]%d %s @%an\" ( つっこみ )
|
最近の日記 2024年03月10日 ・停電 (瞬電) 2024年03月03日 ・the second try on bare-metal ・useradd 2024年02月29日 ・opendkim and senmail 2024年01月24日 ・chat/iam 0.0.8 2024年01月21日 ・uselocale vs setlocale (textproc/R-readxl) | ||