Skip to content

Commit d1336b9

Browse files
committed
Translated Appendix A.
1 parent 3dc88bb commit d1336b9

File tree

7 files changed

+174
-173
lines changed

7 files changed

+174
-173
lines changed
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
[appendix]
2-
== Git in Other Environments
2+
== Git σε άλλα περιβάλλοντα
33

4-
If you read through the whole book, you've learned a lot about how to use Git at the command line.
5-
You can work with local files, connect your repository to others over a network, and work effectively with others.
6-
But the story doesn't end there; Git is usually used as part of a larger ecosystem, and the terminal isn't always the best way to work with it.
7-
Now we'll take a look at some of the other kinds of environments where Git can be useful, and how other applications (including yours) work alongside Git.
4+
Σε αυτό το βιβλίο, έχουμε μάθει πολλά για τον τρόπο χρήσης του Git στη γραμμή εντολών.
5+
Μπορούμε να εργαστούμε με τοπικά αρχεία, να συνδέσουμε το αποθετήριό μας με άλλους μέσω ενός δικτύου και να εργαστούμε αποτελεσματικά με άλλους.
6+
Αλλά η ιστορία δεν τελειώνει εκεί. Το Git χρησιμοποιείται συνήθως ως μέρος ενός μεγαλύτερου οικοσυστήματος και το τερματικό δεν είναι πάντα ο καλύτερος τρόπος για να εργαστούμε μαζί του.
7+
Τώρα θα ρίξουμε μια ματιά σε μερικά από τα άλλα είδη περιβάλλοντος όπου το Git μπορεί να είναι χρήσιμο και πώς άλλες εφαρμογές (συμπεριλαμβανομένων και των δικών μας) λειτουργούν μαζί με το Git.
88

99
include::sections/guis.asc[]
1010

1111
include::sections/visualstudio.asc[]
1212

1313
include::sections/eclipse.asc[]
1414

15-
1615
include::sections/bash.asc[]
1716

1817
include::sections/zsh.asc[]
1918

2019
include::sections/powershell.asc[]
2120

22-
=== Summary
21+
=== Ανακεφαλαίωση
2322

24-
You've learned how to harness Git's power from inside the tools that you use during your everyday work, and also how to access Git repositories from your own programs.
23+
Έχουμ μάθει πώς να αξιοποιήσουμε τη δύναμη του Git μέσα από τα εργαλεία που χρησιμοποιούμε κατά τη διάρκεια της καθημερινής μας εργασίας και επίσης πώς να αποκτήσουμε πρόσβαση στα αποθετήρια Git από τα δικά σας προγράμματα.
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
=== Git in Bash
1+
=== Το Git στο Bash
22

3-
(((bash)))(((tab completion, bash)))(((shell prompts, bash)))
4-
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.
3+
(((bash)))(((συμπλήρωση με tab, bash)))(((προτροπή κελύφους, bash)))
4+
Αν είμαστε χρήστες του Bash, μπορούμε να αξιοποιήσουμε κάποιες από τις λειτουργίες του κελύφους μας για να κάνουμε την εμπειρία μας με το Git πολύ πιο φιλική.
5+
Το Git στην πραγματικότητα φέρει plugins για πολλά κελύφη, αλλά δεν είναι ενεργοποιημένο εκ προεπιλογής.
66

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+
Πρώτον, πρέπει να λάβουμε ένα αντίγραφο του αρχείου `contrib/completion/git-completion.bash` εκτός του πηγαίου κώδικα Git.
8+
Το αντιγράφουμε κάπου βολικά, όπως στον αρχικό μας κατάλογο και προσθέτουμε το παρακάτω στο `.bashrc` μας:
99

1010
[source,console]
1111
-----
1212
. ~/git-completion.bash
1313
-----
1414

15-
Once that's done, change your directory to a git repository, and type:
15+
Μόλις γίνει αυτό, αλλάζουμε τον κατάλογο σε ένα αποθετήριο Git και πληκτρολογούμε:
1616

1717
[source,console]
1818
----
1919
$ git chec<tab>
2020
----
2121

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+
... και το Bash θα ολοκληρώσε αυτόματα σε `git checkout`.
23+
Αυτό λειτουργεί με όλες τις δευτερεύουσες εντολές του Git, τις παραμέτρους της γραμμής εντολών και τα απομακρυσμένα αποθετήρια και τα ονόματα ref, όπου χρειάζεται.
2424

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+
Είναι επίσης χρήσιμο να προσαρμόσουμε την προτροπή μας ώστε να εμφανίζονται πληροφορίες σχετικά με το αποθετήριο Git του τρέχοντος καταλόγου.
26+
Αυτό μπορεί να είναι τόσο απλό όσο και πολύπλοκο όσο θέλουμε, αλλά υπάρχουν γενικά μερικά βασικά κομμάτια πληροφοριών που οι περισσότεροι άνθρωποι θέλουν, όπως ο τρέχων κλάδος, και η κατάσταση του καταλόγου εργασίας.
27+
Για να τα προσθέσουμε στην προτροπή μας, απλά αντιγράφουμε το αρχείο `contrib/completion/git-prompt.sh` από τον αποθετήριο πηγαίου κώδικα του Git στον οικείο κατάλογό μας, προσθέτουμε κάτι τέτοιο στο` .bashrc` μας:
2828

2929
[source,console]
3030
-----
@@ -33,10 +33,10 @@ export GIT_PS1_SHOWDIRTYSTATE=1
3333
export PS1='\w$(__git_ps1 " (%s)")\$ '
3434
-----
3535

36-
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+
Το `\w` σημαίνει την εκτύπωση του τρέχοντος καταλόγου εργασίας, το `\$` εκτυπώνει το τμήμα `$` της προτροπής και το `__git_ps1 " (%s)"` καλεί τη λειτουργία που παρέχεται από το `git-prompt.sh` με ένα όρισμα μορφοποίησης.
37+
Τώρα η προτροπή του bash θα μοιάζει με αυτό όταν είμαστε οπουδήποτε μέσα σε ένα έργο που ελέγχεται από το Git:
3838

39-
.Customized `bash` prompt.
40-
image::images/git-bash.png[Customized `bash` prompt.]
39+
.Εξατομικευμένη προτροπή `bash`.
40+
image::images/git-bash.png[Εξατομικευμένη προτροπή `bash`.]
4141

42-
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+
Και τα δύο αυτά σενάρια έρχονται με χρήσιμη τεκμηρίωση· περισσότερες πληροφορίες μπορεί να βρει κανείς στα περιεχόμενα των `git-completion.bash` και` git-prompt.sh`.
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
=== Git in Eclipse
1+
=== Git στο Eclipse
22

33
(((Eclipse)))
4-
Eclipse ships with a plugin called Egit, which provides a fairly-complete interface to Git operations.
5-
It's accessed by switching to the Git Perspective (Window > Open Perspective > Other…, and select "Git").
4+
Το Eclipse διαθέτει ένα plugin που ονομάζεται Egit, το οποίο παρέχει μια αρκετά ολοκληρωμένη διεπαφή στις λειτουργίες Git.
5+
Μπορούμε να το προσπελάσουμε πηγαίνοντας στο Git Perspective (Window > Open Perspective > Other… και επιλέγουμε ``Git'').
66

7-
.Eclipse's EGit environment.
8-
image::images/egit.png[Eclipse's EGit environment.]
7+
.Το περιβάλλον EGit του Eclipse.
8+
image::images/egit.png[Το περιβάλλον EGit του .]
99

10-
EGit comes with plenty of great documentation, which you can find by going to Help > Help Contents, and choosing the "EGit Documentation" node from the contents listing.
10+
Το EGit συνοδεύεται από εκτενή και ποιοτική τεκμηρίωση, την οποία μπορούμε να βρούμε αν πάμε από το μενού στο Help > Help Contents Βοήθεια και επιλέξουμε τον κόμβο ``EGit Documentation'' από την λίστα περιεχομένων.

0 commit comments

Comments
 (0)