VANHIEP.NET - Làm web giá rẻ - Thiết Kế Website - Thiết Kế Ứng Dụng Mobile
Updates were rejected because the tip of your current branch is behind

Updates were rejected because the tip of your current branch is behind

error: failed to push some refs to 'https://github.com/hieplevanqts/project_canans.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.

Khi push code lên github mà gặp trường hợp lỗi như trên ta xử lý như sau

git push -f origin master

Sử dụng -f để ghi đè lên nhánh ở trên github