Propagating changes from a local repository to ano

2019-09-09 23:01发布

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条回答
聊天终结者
2楼-- · 2019-09-09 23:40

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

查看更多
登录 后发表回答