I am very new to Github. I cloned a repo and created a test
branch. After that I pushed the test
branch and created a pull request. After that, I made the changes in test
branch and committed the changes.
Before pushing my latest commit in test
, I did the following in test
branch:
git fetch
git rebase origin/develop
Now, I am trying to run the following command from the test
command:
git push origin test
I am getting the following error:
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
I have already done git fetch
and git rebase origin/develop
. What should I do now? Why am I getting this error?