Propagating changes from a local repository to another local repository

◇◆丶佛笑我妖孽 提交于 2020-01-07 05:50:15

问题


On the same machine, user A owns a repository and user B owns a clone of the repository. How do I propagate user A's changes to user B's repository (taking into consideration user permissions)?


回答1:


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)".



来源:https://stackoverflow.com/questions/5439619/propagating-changes-from-a-local-repository-to-another-local-repository

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!