[Git] Can someone help me understand what this git error is saying?

Posted by ProgrammingQuestio@reddit | learnprogramming | View on Reddit | 4 comments

[https://imgur.com/a/oiho3Og](https://imgur.com/a/oiho3Og) ​ This is a simple repo I made to try to recreate the issue to better understand what's happening. ​ The process is pretty much: ​ Make a new branch off of main, called myBranch. Make some commits, push those commits to the remote myBranch. ​ Then fetch new changes that have since been pushed into main (i.e. after myBranch was created), and rebase myBranch onto the top of main. Make some new changes to myBranch, and try to push to the remote myBranch. ​ This is when the above error shows up. I'm not able to fully grasp what's going on here and would appreciate it if someone could help me make sense of the error I'm seeing. The way I've gotten around this in the past is to just make a new remote branch called like myBranch2, but this gets confusing and messy and I'd much prefer to continue using the same remote branch