git push origin main To github.com:mirhusenray/SMS.git ! [rejected] main -> main (non-fast-forward) error: failed to push some refs to 'github.com:mirhusenray/SMS.git' hint: Updates were rejected because a pushed branch tip is behind its remote hint: counterpart. Check out this branch and integrate the remote changes hint: (e.g. 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.
git pull origin main
git push origin main
From github.com:mirhusenray/SMS
* branch main -> FETCH_HEAD
fatal: It seems that there is already a rebase-merge directory, and
I wonder if you are in the middle of another rebase. If that is the
case, please try
git rebase (--continue | --abort | --skip)
If that is not the case, please
rm -fr ".git/rebase-merge"
and run me again. I am stopping in case you still have something
valuable there.
git rebase --continue
rm -fr ".git/rebase-merge"
git push origin main
0 Comments