0

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

Chetan
  • 46,743
  • 31
  • 106
  • 145

1 Answers1

3

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

roberttdev
  • 42,762
  • 2
  • 20
  • 23
  • I know this post is quite old, but... In repo B, will any alterations need to be made after the pull from repo A? Basically, will the origin have to be reset? // I doubt this is so, because `git pull origin master` should refer to the remote master...? – KDecker Apr 23 '18 at 18:38