I create a new remote repository in my LAN and I add the projects (PROJECT 1
,PROJECT 2
).
USER A and USER B clone the repository at a time and USER A did the changes in PROJECT 1
and pushed these changes.
USER B did the changes in PROJECT 2
,he didn't make any changes in PROJECT 1
and while pushing the data also he select only PROJECT 2
content, But it gives error while pushing.
ERROR :
error: failed to push some refs to http://gitbub.com
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first merge the remote changes (e.g.,
hint: 'git pull') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.`
How to allow the push for User 2?