Gitflow: Installationsproblem unter Windows - "Datei nicht gefunden - shflags"

Erstellt am 9. Juli 2012  ·  9Kommentare  ·  Quelle: nvie/gitflow

Hallo,

Ich versuche zum ersten Mal, git flow unter Windows 7 64 Bit zu installieren.

Ich hatte eine fehlende getopt.exe, also habe ich util-linux installiert (http://downloads.sourceforge.net/gnuwin32/util-linux-ng-2.14.1-setup.exe). Dann habe ich git flow ohne Admin-Rechte installiert und mich aufgefordert, die Installation in einem Admin-Cmd neu zu starten. Nachdem ich cmd sudo habe, bekomme ich

1 Datei(en) kopiert
C:\tmp\gitflow\git-flow -> C:\Programme (x86)\Gitbin\git-flow
C:\tmp\gitflow\git-flow-feature -> C:\Programme (x86)\Gitbin\git-flow-feature
C:\tmp\gitflow\git-flow-hotfix -> C:\Programme (x86)\Gitbin\git-flow-hotfix
C:\tmp\gitflow\git-flow-init -> C:\Programme (x86)\Gitbin\git-flow-init
C:\tmp\gitflow\git-flow-release -> C:\Programme (x86)\Gitbin\git-flow-release
C:\tmp\gitflow\git-flow-support -> C:\Programme (x86)\Gitbin\git-flow-support
C:\tmp\gitflow\git-flow-version -> C:\Programme (x86)\Gitbin\git-flow-version
7 Datei(en) kopiert
C:\tmp\gitflow\gitflow-common -> C:\Programme (x86)\Gitbin\gitflow-common
C:\tmp\gitflow\gitflow-shFlags -> C:\Programme (x86)\Gitbin\gitflow-shFlags
2 Datei(en) kopiert
Datei nicht gefunden - shflags
0 Datei(en) kopiert
Einige unerwartete Fehler sind aufgetreten. Entschuldigung, Sie müssen sie selbst reparieren. [Y]?Y

Googeln Sie nach genau dieser Zeichenfolge ("Datei nicht gefunden - shflags"), es gab keine genauen Übereinstimmungsergebnisse. Wie soll ich vorgehen?

Hilfreichster Kommentar

Hallo,

Sie haben Probleme mit dem Submodul shFlags:

git clone https://github.com/nvie/gitflow.git
cd gitflow
git submodule 
-2fb06af13de884e9680f14a00c82e52a67c867f1 shFlags
git submodule init
Submodule 'shFlags' (git://github.com/nvie/shFlags.git) registered for path 'shFlags'
git submodule update
Cloning into 'shFlags'...
remote: Counting objects: 454, done.
remote: Compressing objects: 100% (55/55), done.
remote: Total 454 (delta 389), reused 454 (delta 389)
Receiving objects: 100% (454/454), 101.19 KiB, done.
Resolving deltas: 100% (389/389), done.
Submodule path 'shFlags': checked out '2fb06af13de884e9680f14a00c82e52a67c867f1'
git submodule status
 2fb06af13de884e9680f14a00c82e52a67c867f1 shFlags (1.0.3)

Grüße.

Alle 9 Kommentare

Übrigens, als ich versuchte, die Installation erneut zu starten (versehentlich von einem Nicht-Administrator-cmd), bekam ich Folgendes:

C:\tmp\gitflow\contrib>msysgit-install.cmd
Gitflow in "C:\Programme (x86)\Git" installieren...
getopt.exe... Gefunden
GitFlow ist bereits installiert.
Möchten Sie es ersetzen [y/n]n
Installation abgebrochen.

Ist Git Flow richtig installiert oder nicht? Wie kann ich überprüfen?

Hallo,

Sie haben Probleme mit dem Submodul shFlags:

git clone https://github.com/nvie/gitflow.git
cd gitflow
git submodule 
-2fb06af13de884e9680f14a00c82e52a67c867f1 shFlags
git submodule init
Submodule 'shFlags' (git://github.com/nvie/shFlags.git) registered for path 'shFlags'
git submodule update
Cloning into 'shFlags'...
remote: Counting objects: 454, done.
remote: Compressing objects: 100% (55/55), done.
remote: Total 454 (delta 389), reused 454 (delta 389)
Receiving objects: 100% (454/454), 101.19 KiB, done.
Resolving deltas: 100% (389/389), done.
Submodule path 'shFlags': checked out '2fb06af13de884e9680f14a00c82e52a67c867f1'
git submodule status
 2fb06af13de884e9680f14a00c82e52a67c867f1 shFlags (1.0.3)

Grüße.

Großartig, danke!

habe das gleiche Problem und blieb bei "git submodule update" hängen

bekomme diesen Fehler

$ git-Submodul-Update
fatal: Einmalige Überarbeitung erforderlich
Kann die aktuelle Revision im Submodulpfad 'shFlags' nicht finden

Was mache ich falsch ?
Die Suche bei Google endet mit https://github.com/mxcl/homebrew/issues/15412
Aber ich bin auf Windows7 und nicht auf Homebrew und ich bekomme ihre Fixes nicht

hat jemand einen Hinweis? würde mich sehr freuen danke im voraus

hey @grails-ruin-app ich habe genau das gleiche problem wie du, hast du schon mal eine lösung gefunden?

@cmchiu
Das Problem ist, dass Ihre Verbindung für Git Hub ausfällt. und die gitflow\shFlags enthalten eine .git-Datei.

Löschen Sie es einfach und Sie können loslegen.

Auch um diesen verdammten Fehler zu beheben, lies einfach durch

http://stackoverflow.com/questions/4891527/git-protocol-blocked-by-company-how-can-i-get-around-that

git config --globale URL."https://".anstatt von git://

hat den Trick für mich gemacht.

@cmchiu ja, ich umgestiegen :D

Exzellent! Submodul-Update hat mir geholfen, es zu beheben :)

Schade, dass ich das nicht hinbekomme...

C:\var\www\gitflow>git submodule init

C:\var\www\gitflow>git submodule update

C:\var\www\gitflow>git submodule status

C:\var\www\gitflow>

Ziemlich sicher sollte etwas auftauchen :o

War diese Seite hilfreich?
0 / 5 - 0 Bewertungen

Verwandte Themen

88Alex picture 88Alex  ·  17Kommentare

andremedeiros picture andremedeiros  ·  34Kommentare

RoLYroLLs picture RoLYroLLs  ·  4Kommentare

primeminister picture primeminister  ·  4Kommentare

piercemcgeough picture piercemcgeough  ·  8Kommentare