У меня есть одна учетная запись на github, и я могу передавать ее в другие репозитории.
Я создал репозиторий под названием Vigenere, но затем удалил его.
Я создал новый репозиторий под названием Vigenere, Клонировал его. Добавлены мои файлы в Intellij и PUSHED.
Я получаю
17:32:32.938: [Vigenere-master] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false push --progress --porcelain origin refs/heads/master:master --set-upstream
error: failed to push some refs to 'https://github.com/MYGITHUB/Vigenere.git'
To https://github.com/MYGITHUB/Vigenere.git
! refs/heads/master:refs/heads/master [rejected] (fetch first)
hint: Updates were rejected because the remote contains work that you do
Done
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.
Так что говорит попробуйте мерзавец. Затем он говорит мне, что похоже, что эти неродственные файлы вообще из другого проекта!
17:34:55.281: [Vigenere-master] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false pull --progress --no-stat -v --progress origin master
POST git-upload-pack (275 bytes)
remote: Enumerating objects: 3, done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
warning: no common commits
From https://github.com/MYGITHUB/Vigenere
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
fatal: refusing to merge unrelated histories