You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Benutzer von RHEL und RHEL-Derivaten wie CentOS und Scientific Linux müssen das https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F[EPEL-Repository aktivieren], um das Paket `docbook2X` herunterzuladen.
101
-
====
100
+
Benutzer von RHEL und RHEL-Derivaten wie CentOS und Scientific Linux müssen das https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F[EPEL-Repository aktivieren], um das Paket `docbook2X` herunterzuladen.
101
+
====
102
102
103
103
Wenn Sie eine Debian-basierte Distribution (Debian, Ubuntu oder deren Derivate) verwenden, benötigen Sie auch das Paket `install-info`:
If you're a Bash user, you can tap into some of your shell's features to make your experience with Git a lot friendlier.
5
-
Git actually ships with plugins for several shells, but it's not turned on by default.
4
+
Wenn Sie ein Bash-Benutzer sind, können Sie einige der Funktionen Ihrer Shell nutzen, um Ihren Umgang mit Git viel angenehmer zu gestalten.
5
+
Git wird mit Plugins für mehrere Shells ausgeliefert. Sie sind jedoch nicht standardmäßig aktiviert.
6
6
7
-
First, you need to get a copy of the `contrib/completion/git-completion.bash`file out of the Git source code.
8
-
Copy it somewhere handy, like your home directory, and add this to your`.bashrc`:
7
+
Zunächst müssen Sie eine Kopie der Datei `contrib/completion/git-completion.bash`aus dem Git-Quellcode herunterladen.
8
+
Kopieren Sie es irgendwo hin, bspw. in ihr Home-Verzeichnis und fügen Sie folgendes Ihrer`.bashrc` hinzu:
9
9
10
10
[source,console]
11
11
-----
12
12
. ~/git-completion.bash
13
13
-----
14
14
15
-
Once that's done, change your directory to a Git repository, and type:
15
+
Wechseln Sie anschließend in ein Git-Repository und geben Sie Folgendes ein:
16
16
17
17
[source,console]
18
18
----
19
19
$ git chec<tab>
20
20
----
21
21
22
-
…and Bash will auto-complete to`git checkout`.
23
-
This works with all of Git's subcommands, command-line parameters, and remotes and ref names where appropriate.
22
+
…und Bash vervollständigt dies automatisch zu`git checkout`.
23
+
Dies funktioniert mit allen Unterbefehlen, Befehlszeilenparametern sowie Remote und Referenznamen von Git, sofern dies erforderlich ist.
24
24
25
-
It's also useful to customize your prompt to show information about the current directory's Git repository.
26
-
This can be as simple or complex as you want, but there are generally a few key pieces of information that most people want, like the current branch, and the status of the working directory.
27
-
To add these to your prompt, just copy the `contrib/completion/git-prompt.sh`file from Git's source repository to your home directory, add something like this to your `.bashrc`:
25
+
Es ist auch nützlich, die Eingabeaufforderung so anzupassen, dass Informationen zum Git-Repository des aktuellen Verzeichnisses angezeigt werden.
26
+
Dies kann so einfach oder komplex sein, wie Sie möchten. Im Allgemeinen gibt es jedoch einige wichtige Informationen, die die meisten Benutzer benötigen, z. B. den aktuellen Zweig und den Status des Arbeitsverzeichnisses.
27
+
Um diese zu Ihrer Eingabeaufforderung hinzuzufügen, kopieren Sie einfach die Datei `contrib/completion/git-prompt.sh`aus dem Quellrepository von Git in Ihr Home Verzeichnis. Fügen Sie Ihre `.bashrc` Datei folgendes hinzu:
The`\w`means print the current working directory, the`\$`prints the `$`part of the prompt, and`__git_ps1 " (%s)"`calls the function provided by `git-prompt.sh`with a formatting argument.
37
-
Now your bash prompt will look like this when you're anywhere inside a Git-controlled project:
36
+
Das`\w`bedeutet das Ausgeben des aktuellen Arbeitsverzeichnisses, das`\$`gibt den `$`Teil der Eingabeaufforderung aus und`__git_ps1 "(% s)"`ruft die von` git-prompt.sh`bereitgestellte Funktion mit einem Formatierungsargument auf.
37
+
Jetzt sieht Ihre Bash-Eingabeaufforderung so aus, wenn Sie sich irgendwo in einem Git Projekt befinden:
Both of these scripts come with helpful documentation; take a look at the contents of `git-completion.bash`and`git-prompt.sh`for more information.
42
+
Beide Skripte werden mit hilfreicher Dokumentation geliefert. Weitere Informationen finden Sie in den Skripten `git-completion.bash`und`git-prompt.sh`selbst.
0 commit comments