0

When i try to change my branch and push the code to new branch a error is thrown. How to overcome this type of error

![REJECTED] error: failed to push some refs to 'some link' 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.

Aravind
  • 600
  • 5
  • 12
  • Did you read the information suggested? Research the error message? https://stackoverflow.com/search?q=%5Bgit%5D+%22Updates+were+rejected+because+the+remote+contains+work%22 – jonrsharpe Jun 15 '20 at 18:13
  • https://stackoverflow.com/search?q=%5Bgit%5D+Updates+were+rejected+because+the+remote+contains+work+that+you+do+not+have+locally – phd Jun 15 '20 at 18:42

1 Answers1

0

Here is the solution Arvind : Make sure whether you copied the right path from either GitHub or Bitbucket Click here for more info

Kumaran KM
  • 16
  • 3