开发者

Propagating changes from a local repository to another local repository

开发者 https://www.devze.com 2023-02-19 16:19 出处:网络
On the same machine, user A owns a repository and user B owns a c开发者_运维知识库lone of the repository. How do I propagate user A\'s changes to user B\'s repository (taking into consideration user p

On the same machine, user A owns a repository and user B owns a c开发者_运维知识库lone of the repository. How do I propagate user A's changes to user B's repository (taking into consideration user permissions)?


Have user A use "git commit" to commit the changes, then have user B do a "git pull". Since the B repo is a clone of A, you can use the auto-generated remote alias "origin" that aliases repo A's location: "git pull origin (branch name)".

0

精彩评论

暂无评论...
验证码 换一张
取 消