将更改从本地存储库传播到另一个本地存储库 [英] Propagating changes from a local repository to another local repository

查看:107
本文介绍了将更改从本地存储库传播到另一个本地存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在同一台机器上,用户A拥有一个存储库,用户B拥有该存储库的一个副本。如何将用户A的更改传播给用户B的存储库(考虑到用户权限)?

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)?

推荐答案

让用户A使用git承诺提交更改,然后让用户B执行git pull。由于B回购是A的克隆,你可以使用自动生成的远程别名原产地是别名回购A的位置:混帐拉原点(分支名称)

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

这篇关于将更改从本地存储库传播到另一个本地存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆