Forum: PC-Programmierung git alias mit attributen


von Johannes (Gast)


Lesenswert?

Hallo,

ich möchte ein alias für git erstellen.

loggrep = !git log --grep

das funktioniert auch schon mit z.B.

git loggrep 'test'

jetzt möchte ich im alias auch gerne noch das attribut --ingnore-case 
verwenden. wenn ich das aber hinter --grep hänge also:
loggrep = !git log --grep --ignore-case
und es aufrufe bekomme ihc den fehler

fatal: ambiguous argument 'test': unknown revision or path not in the 
working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

ich kann -i natürlich auch beim aufruf mit angeben. Da ich es aber eh 
immer verwende, würde ich es auch direkt im alias hinterlegen.

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.