There is an open source project to which I want to contribute to. I forked it and set the upstream to my master from the remote master. Now I created another branch add_func. I made some changes to this branch but by the time I completed it, there were many changes in the remote one. I followed these steps:
git pull upstream master && git push origin master- Modify things in my local branch
add_func git push orign add_func
But I am getting error Updates were rejected because the tip of your current branch is behind its remote counterpart. Integrate the remote changes.
Note: I already made a pull request with the add_func branch. By the time it got reviewed, there were changes. So, I cannot delete this branch or merge it into master.
PS: I know there are similar questions and I have checked them out but none of them have the answer I am looking for.