Ich habe ein Projekt, das in Git eingerichtet ist. Ich versuche, ein Repository in Onedrive zu erstellen, aber ich kann Git nicht erkennen, das Repo zu erkennen, sobald es erstellt wird.git remote in Onedrive wird nicht erkannt
Ich habe den Ordner in Onedrive erstellt, einen alten Ursprung entfernt und den neuen hinzugefügt. All dies läuft gut, bis ich versuche, es abzufragen oder irgendeine Aktion (z. B. einen Push) durchzuführen, und ich bekomme nur den Fehler "Kann nicht aus dem Remote-Repository lesen". Bitte sehen Sie den Code.
die seltsame Sache ist, dass Git ziemlich glücklich schafft die Fernbedienung, aber dann kann nicht darauf zugreifen.
hier ist der Prozess, und der Code
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.
Hat jemand irgendwelche Ideen re das?
Grüße Ray
Danke, das scheint es behoben zu haben. Manchmal sind es die einfachsten Dinge, die einen austricksen. – user3247506