Ich habe ein Problem. Ich verwende git, um den Code in gitlab hochzuladen, aber es wirft einen Fehler auf, der unten angegeben ist.Fehler beim Drücken des Codes mit Git
[email protected]:/opt/lampp/htdocs/MeetingRoomBooking/mrb_correct$ git push --all
Password for 'https://[email protected]':
To https://[email protected]/Subhraj/Meeting-room-booking.git
! [rejected] secure -> secure (fetch first)
error: failed to push some refs to 'https://[email protected]/Subhraj/Meeting-room-booking.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.
[email protected]:/opt/lampp/htdocs/MeetingRoomBooking/mrb_correct$
Davor hatte ich den Code in mein Repository hochgeladen. Danach muss ich eine Herausforderung in cms.securecodewarrior.com
dafür erstellen, wenn ich den folgenden Befehl ausführe gab es mir den obigen Fehler.
1-git checkout -b secure
2-git push --all
Bitte helfen Sie mir, diesen Fehler zu beheben.
Mögliches Duplikat von [git error: konnte einige refs nicht drücken] (https://stackoverflow.com/questions/24114676/git-error-failed-to-push-some-refs-to) – YoannFleuryDev
Mögliches Duplikat von [git abgelehnt Push-Non-Fast-Forward] (https://stackoverflow.com/questions/16899243/git-rejected-push-non-fast-forward) –
Ich habe versucht, aber die gleichen Fehlermeldungen kommen. – satya