Привет Я новичок в Git и попытаться создать локальный репозиторий и совершил код, но когда я пытаюсь нажать код на мой толчок команде это дает эту ошибкуGit толчок не работает
SUMITs-Mac-mini:gitupload sumit$ git push -u origin master
To https://github.com/sumittiwari87/First-Gulp-Lesson.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/sumittiwari87/First-Gulp-Lesson.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.
Таким образом, Я попытался вытащить изменения фиксации, и я получил ошибку.
SUMITs-Mac-mini:gitupload sumit$ git pull origin master
warning: no common commits
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (4/4), done.
From https://github.com/sumittiwari87/First-Gulp-Lesson
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
fatal: refusing to merge unrelated histories
Я не понимаю, почему это происходит.
Если бы мне пришлось угадать, то я бы уточнил, что вы добавили правильный удаленный url –