У меня есть проект, который настроен в git. Я пытаюсь создать репозиторий в onedrive, но я не могу получить git, чтобы распознать репо после его создания.git удаленный в onedrive не распознается
Я создал папку в onedrive, удалил старое происхождение и добавил новый. Все это идет хорошо, пока я не попытаюсь запросить его или выполнить какое-либо действие (например, push), и я просто получаю сообщение «Не могу прочитать из удаленного репозитория». См. Код.
странно, что git довольно счастливо создает пульт дистанционного управления, но затем не может получить к нему доступ.
здесь процесс и код
PS E:\ToolTrakka V7_git\tt> md C:\users\rgudgeon.RGA\OneDrive\Development\tooltrakka_v7_repo.git
Directory: C:\users\rgudgeon.RGA\OneDrive\Development
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 30-Oct-16 10:08 AM tooltrakka_v7_repo.git
PS E:\ToolTrakka V7_git\tt> cd C:\users\rgudgeon.RGA\OneDrive\Development\tooltrakka_v7_repo.git
PS C:\users\rgudgeon.RGA\OneDrive\Development\tooltrakka_v7_repo.git> git init --bare
Initialized empty Git repository in C:/Users/rgudgeon.RGA/OneDrive/Development/tooltrakka_v7_repo.git/
PS C:\users\rgudgeon.RGA\OneDrive\Development\tooltrakka_v7_repo.git> cd "E:\ToolTrakka V7_git\tt"
PS E:\ToolTrakka V7_git\tt> git remote
PS E:\ToolTrakka V7_git\tt> git remote add origin file:\\\C:\users\rgudgeon.RGA\OneDrive\Development\tooltrakka_v7_repo.git
PS E:\ToolTrakka V7_git\tt> git remote
origin
E:\ToolTrakka V7_git\tt> git remote show origin
git : ssh: Could not resolve hostname file: Name or service not known
At line:1 char:1
+ git remote show origin
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (ssh: Could not ...rvice not known:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
PS E:\ToolTrakka V7_git\tt>
PS E:\ToolTrakka V7_git\tt> git push -u origin master
git : ssh: Could not resolve hostname file: Name or service not known
At line:1 char:1
+ git push -u origin master
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (ssh: Could not ...rvice not known:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Кто-нибудь есть какие-либо идеи, повторно это?
Привет Ray
Спасибо, что исправил его. Иногда это самые простые вещи, которые обманывают друг друга. – user3247506