forked from yuki-kimoto/gitprep
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
gitprep
committed
May 16, 2014
1 parent
016a6e7
commit bb16a8a
Showing
2 changed files
with
44 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
command="ls",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAurwDPkF1gw5Nf98BhBtPKLBEQ/AdiLIJUEreaa39aWGqzi5s4WBxBP3LMvdvqpMdbnj81ivklJTdlTbKuP4EkhVaXAtB0bw1m/oHPFpp2lH772Bj7ToZQc9omW0bqpP7CtRHCBlf10RIFnhB6ugHSETo4C/esL7OQPThHYvRd8lCGTFq9/4sVd1fWbTcreyXhQA669W+w//xNWla2KnO6+4i/P15SlZfvlgwkziaUHQRZXeVJ0toKuvQRjw5XI18Q3fORnlPALAL4ZV2vUA2Nh4wQGeEkMnXVKF92h+JrXG01filfvnPZZzSnIzVMEyA5ZHV1GhOFUzsogsBKhWrOw== [email protected] | ||
|
||
# gitolite start | ||
command="/home/git/gitolite/src/gitolite-shell yuku_t", | ||
no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty | ||
ssh-rsa AAAAB3NzaC1y...== yuku_t | ||
# gitolite end | ||
|
||
ssh -p55555 -i ~/tmp/id_rsa_gitprep2 59.106.185.196 | ||
|
||
|
||
ssh -p55555 -i ~/tmp/id_rsa_gitprep2 git clone ssh://[email protected]:55555/home/gitprep/labo/gitprep/data/rep/kimoto/gitprep_t.git | ||
|
||
ssh -p55555 -i ~/tmp/id_rsa_gitprep2 git-upload-pack gitprep_t.git | ||
|
||
|
||
ssh -p55555 59.106.185.196 | ||
|
||
|
||
git clone ssh://[email protected]:55555/gitprep_t.git | ||
|
||
|
||
���ϐ� GIT_SSH | ||
|
||
~/.ssh/config �͑�ϕ֗��ł����A Git �Ƃ͖��W�� SSH �ڑ����ɂ��Q�Ƃ����̂ŕs�s���Ȃ��Ƃ�����܂��B�ʂ̕��@�Ƃ��āA GIT_SSH ���ϐ��� SSH �̃��b�p�[�X�N���v�g���w�肷�邱�Ƃ��ł��܂��B | ||
|
||
git-ssh.sh | ||
#!/bin/sh | ||
exec ssh -oIdentityFile=~/.ssh/github_id_rsa "$@" | ||
$ GIT_SSH=git-ssh.sh git push [email protected]:kyanny/hello.git master | ||
|