I just started using Git VCS and I created repository on BitBucket when I pushed my project then I committed couple changes and pushed them to the remote repository.
Then I wanted to test how collaboration goes and created another user on BitBucket and added him to my main repository with read/write access to repository.
Then I renamed the user name and email in git bash and cloned the project with that new user credentials. However when I added commit and pushed it put it in online repository.
When I tried to only give read access it did not allow to push at all.
I thought you can see changes other users make and can either approve or reject them from main account (account who owns repository) before they added to master repository, how can I set that up?
EDIT: I am super admin and I have 3 random developers working for me developing my project. How can I check the code they created before allowing it to be written on my repository on BitBucket? So if I don’t like the code I can reject it and make them come up with better one. – John Smith 24 secs ago
So, if you give someone read only access then of course they can only pull, not push.
In your scenario you workflow would be…
User B does some work and commits locally
User B contacts User A (email whatever) and notifies that he has changes
User A pulls from User B and verifies correctness
User A pushes User B’s changes to Bitbucket.
(User A must have set up User B as a remote)