- Setup ssh login
- ssh [your_name]@[server_name] mkdir .ssh
- scp ~/.ssh/id_rsa.pub [your_name]@[server_name]:.ssh/authorized_keys
- Install Git:
- ssh [server_name]
- sudo apt-get update
- sudo apt-get install git-core
- If a shared repository is need, create a git user:
- sudo adduser git
- ... cont on setup ssh login.
- Add repository
- Login as your_name or git
- mkdir myrepo.git
- cd myrepo.git
- git --bare init
- Setup development machine
- git remote add origin [server_name]:myrepo.git
- git push origin master
- Done
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.