Why do I always resubmit other people’s code in git? ?
Before pushing your own code to the remote end, first pull the latest code from the remote end to the local end. If there is a conflict, resolve the conflict and then push it to the remote end.
It may be because someone else submitted it before you, so after you submit it, you will merge other people's code with your own and submit it again.
Be sure to fetch or pull before each submission
Pull before pushing to resolve merge conflicts
Before pushing your own code to the remote end, first pull the latest code from the remote end to the local end. If there is a conflict, resolve the conflict and then push it to the remote end.
It may be because someone else submitted it before you, so after you submit it, you will merge other people's code with your own and submit it again.
Be sure to fetch or pull before each submission
Pull before pushing to resolve merge conflicts