In CentOS: yum install git
- Create the user account, setup public key authentication, and then login as the user
- Create a folder for repositories e.g. mkdir repo
- Create a folder for the repository you want to add: e.g. mkdir project.git
- Go into the folder, and run "git init --bare"
On the client from which to share the code:
- Create a repository i.e. git init
- Add and commit some files
- Setup remote e.g. "git remote add origin username@serveraddr:repo/project.git"
- git push origin master
References
No comments:
Post a Comment