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 integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Hi I am new to git, so we are working on a project in our office, we are using bitbucket. I have committed and pushed some lines of code. To the same PR, another person has pushed their code. How can I pull their code to my local repo?
I didn't update my code with theirs and when I tried to push my code I got the above error. Upon force push, their commit was overridden.