I had made some changes to my code and had updated my git to add these new changes to my repository but it is coming as followed.
On branch main
Your branch and 'origin/main' have diverged,
and have 2 and 1 different commits each, respectively.
(use "git pull" to merge the remote branch into yours)
nothing to commit, working tree clean
And my repository is not accepting the new changes that i have made in my code.
I tried to check for the new branch that git said that had been formed but nothing came up. And without a branch name i am not able to continue forward.
! [rejected] main -> main (non-fast-forward)
error: failed to push some refs to 'https://github.com/ArjunKallatt/Projesctpython.git'
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.
This is what it showed when i tried to push the new commit and changes.