#github
Вопрос:
Я впервые использую git bash, и я продолжаю получать эту ошибку, когда пытаюсь установить пульт в качестве восходящего потока. Это немного сбивает с толку, так как я вообще не использую удаленные удары.
omaro@DESKTOP-SLPOLVC MINGW64 ~/OneDrive - UW/Desktop/MazeSolver (main) $ git status On branch main nothing to commit, working tree clean omaro@DESKTOP-SLPOLVC MINGW64 ~/OneDrive - UW/Desktop/MazeSolver (main) $ git remote -v origin hittps://github.com/theoystertoaster/MazeSolver.git (fetch) origin hittps://github.com/theoystertoaster/MazeSolver.git (push) omaro@DESKTOP-SLPOLVC MINGW64 ~/OneDrive - UW/Desktop/MazeSolver (main) $ git push fatal: The current branch main has no upstream branch. To push the current branch and set the remote as upstream, use git push --set-upstream origin main omaro@DESKTOP-SLPOLVC MINGW64 ~/OneDrive - UW/Desktop/MazeSolver (main) $ git push --set-upstream origin main git: 'remote-hittps' is not a git command. See 'git --help'. The most similar command is remote-https omaro@DESKTOP-SLPOLVC MINGW64 ~/OneDrive - UW/Desktop/MazeSolver (main)
Ответ №1:
Вы неправильно ввели свой URL-адрес. Все начинается с hittps
того, с чего должно начинаться https
. Вы можете исправить это, выполнив следующие действия:
$ git remote set-url origin https://github.com/theoystertoaster/MazeSolver.git