(no title)
hk_kh | 13 years ago
I could refer you to any tutorial, but I am feeling lazy too, so here, an easy guide:
-- On the server --
1. create an account, call it "git", or "dog"
2. disable shell access for that account in /etc/passwd
- /bin/false
3. enter that account, and set up a bare git repo: - mkdir myrepo.git
- git init --bare myrepo.git
4. add your public key(s) to ~/.ssh/authorized_keys on "git" or "dog" account-- On your client(s) --
1. Clone the repo
- git clone git@your_server:myrepo.git
- dog@...
Ready to go. You can even use git hooks to automate the pull.
No comments yet.