문제

We are working as a team of 4 peoples, our project deployed in openshift and we are commit,push and pull with git repository.. When some one commit more changes other have to pull it for make a update in our system.. But while pull from the server the master get conflict and we did't know how to reslove it.

Every time we delete the file and clone again from server.. As reference with stackoverflow, I solve the problem with team->merge tool but it does't work in many conditions.

Help me. Thanks in advance.

도움이 되었습니까?

해결책

After pull from git repository you get conflict msg.. then you should merge the code using merge.. From that you find the conflict file.. Then undo the changes, then click pull again.. now Do the changes again and commit it.

다른 팁

It looks like you are all modifying the same files at the same time, that can be difficult. Usually you will just need to manually merge the files when you do a git pull. You could also try using rebase. That should move your changes aside, pull in the remote changes, then reply your changes on top of it. I have had success with that in the past.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top