Mặc dù kéo từ chủ từ xa và được cho biết mọi thứ đã được cập nhật, tôi không thể đẩy đến chủ từ xa vì nhánh hiện tại nằm phía sau đầu của điều khiển từ xa. Gì?Tại sao nhánh nhánh đằng sau điều khiển từ xa?
$ git pull origin master
From https://github.com
* branch master -> FETCH_HEAD
Already up-to-date.
$ git push origin master
To https://github.com
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com'
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.
Bạn có thể thực sự hiển thị trạng thái của kho lưu trữ của mình không? sử dụng 'git status' – benzonico
Ngoài ra hãy thử một' git merge origin/master'? – Sam
Bạn có đang ở chế độ đầu bị tách rời không? (http://stackoverflow.com/a/3965714/6309) – VonC