-3

Im pushing my edited code to my existing repo but got an error and that error is shown below ?

enter image description here

can some one tell me how to solve this erro ? i deleted the file from github not from the terminal and also commited the changes.

i'm pushing the code on my existing repo and i expect that the code is pushed on github without any error.

tadman
  • 208,517
  • 23
  • 234
  • 262
SUNNY
  • 1
  • 2
  • https://stackoverflow.com/search?q=%5Bgit%5D+Updates+were+rejected+because+the+remote+contains+work+that+you+do+not+have+locally – phd May 08 '23 at 23:44

1 Answers1

0

As I see from the attached screenshot, I don't see any staged changes. Also you might want to pull any updates from the remote branch first using git pull then you can add changes and commit then push