X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=git-howto.txt;h=e238ee45194e097de3580c30db5726bacca64f5f;hb=38d1b35aabcc683e7b8c0eb191c314a44d3cd7f2;hp=767aff9003ed4b2d1b1275794308f3b7247f135b;hpb=ddcd5830fe8e2152d6a600467363dd3bcb440c0e;p=TLD.git diff --git a/git-howto.txt b/git-howto.txt index 767aff9..e238ee4 100644 --- a/git-howto.txt +++ b/git-howto.txt @@ -7,6 +7,7 @@ Table Of Content: 1. How do I prepare git to work? a) Install git-core b) Configure git globally + c) Configure ssh environment to work with git 2. How do I commit a new .spec file or package to the repository? a) Clone an empty repository (note: it will be automatically created on server side.) @@ -49,6 +50,29 @@ Replace "your_git_login" and "John Doe" accordingly. Above commands will create ~/.gitconfig file with proper settings. +c) Configure ssh environment to work with git + +If you plan to use non default ssh key pair, it's better to put some info about +it to your default .ssh/config file. Edit your local Host alias and key path in +sample below: + +Host git.tld-linux.org + User git + Hostname git.tld-linux.org + PreferredAuthentications publickey + IdentityFile /home/users/YOURUSER/.ssh/YOUR_KEY_FILE + +To test if ssh works, do the: + +ssh -T git.tld-linux.org + +you should get similar answer: + +hello USER, the gitolite version here is x.y.z +the gitolite config gives you the following access: + R W TLD + (...) + ============================================================================== 2. How do I commit a new .spec file or package to the repository?