دوستان عزیز سلام وقت بخیر
وقتی git puh می کنم با این خطا مواجه میشم
error: failed to push some refs to 'https://gitlab.com/NimaShams/parsicarui.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.@khanzadimahdi
مهدی جان سلام این کارو کردم باز هم همون ارور رو بر می گردونه
شاید پاسخ شما همینجا باشد
$ git push --force origin master
این دستور هم وارد که می کنم با این ارورو مواجه میشم
remote: GitLab: You are not allowed to force push code to a protected branch on this project.
To https://gitlab.com/NimaShams/parsicarui.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://gitlab.com/NimaShams/parsicarui.git'
یادمه من هم این مشکل رو داشتم که به طریق زیر تونستم پوش کنم
git push -f origin master