I am pushing a code and I am getting this error:
fatal: HttpRequestException encountered.
An error occurred while sending the request.
Password for 'https://firstname.lastname@example.org':
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://email@example.com/ishakaria/alankar.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first 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.
Hi Isha, welcome to the Community!
According to the error message you got, seems like there was some work on the remote repository that was not yet pulled to your local. Did you follow the instructions and pulled the changes from your remote before pushing?
Please do that and let us know what happens next. If you continue experiencing difficulties, feel free to send us a screenshot so we can continue helping you.