![]() export-all -enable=receive-pack -reuseaddr -informative-errors -verboseĢ) Client clones repository: $ git clone git://127.0.0.1/facebook-killerģ) Client branches-off, makes changes and pushes back new branch: $ git checkout -b sharingĤ) Now on Server you can merge this branch: $ git checkout master Sample flow 1) Run git-daemon in read/write mode: $ git daemon -base-path=. Then you can merge it into a required branch. Before pushing, user on the server should change the branch, if client wants to push to this branch.Another option can be for the client to create a new branch and push it to your server. There is one quirk: client can’t push into your active git branch. export-all -enable=receive-pack -reuseaddr -informative-errors -verbose Sharing push access Add “–enable=receive-pack” option and git-daemon starts supporting push access: $ git daemon -base-path=. Instead of the “127.0.0.1” client should use the IP of your computer. export-all -reuseaddr -informative-errors -verboseĢ) Now clients can clone/pull this repository: $ git clone git://127.0.0.1/facebook-killer Sample flow 1) Run git-daemon in directory with your repos: $ cd my-reposįacebook-killer better-twitter instapound –verbose – notifies about each operation with the repository.–informative-errors – provides cleaner error message for clients.–reuseaddr – allows to restart server quickly.– daemon looks for repositories in a current directory(“.”) –export-all – shares all the repositories in a folder from “–base-path” option.export-all -reuseaddr -informative-errors -verbose Sharing read-only access Next command shares read access(clone/pull) to any repository in current directory: $ git daemon -base-path=. If you need secured solution, consider using SSH-protected way. 5 Making life simpler with aliases Disclaimer Please note that this is an insecure way of sharing access to git repository and should be used only in a friendly LAN-environment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |