Skip to content

Commit 05e497b

Browse files
authored
Merge pull request #3 from saragiotis/saragiotis-ch3-1
Saragiotis ch3 1
2 parents 7548cd0 + c2ed328 commit 05e497b

File tree

8 files changed

+581
-439
lines changed

8 files changed

+581
-439
lines changed

book/03-git-branching/1-git-branching.asc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
== Διακλαδώσεις στο Git
33

44
(((branches)))
5-
Nearly every VCS has some form of branching support.
6-
Branching means you diverge from the main line of development and continue to do work without messing with that main line.
7-
In many VCS tools, this is a somewhat expensive process, often requiring you to create a new copy of your source code directory, which can take a long time for large projects.
5+
Σχεδόν κάθε VCS διαθέτει κάποιας μορφής υποστήριξη για διακλάδωση.
6+
Διακλάδωση ονομάζεται η απόκλιση από την κύρια γραμμή ανάπτυξης ώστε να μπορείτε να συνεχίσετε την εργασία σας χωρίς να παρεμβαίνετε στην κύρια γραμμή ανάπτυξης.
7+
Σε πολλά εργαλεία VCS, η διακλάδωση είναι μία σχετικά ακριβή διαδικασία με την έννοια ότι συχνά απαιτεί τη δημιουργία αντιγράφου του φακέλου στον οποίο βρίσκεται ο πηγαίος κώδικας, κάτι που μπορεί να είναι χρονοβόρο για μεγάλα έργα.
88

9-
Some people refer to Git's branching model as its ``killer feature,'' and it certainly sets Git apart in the VCS community.
10-
Why is it so special?
11-
The way Git branches is incredibly lightweight, making branching operations nearly instantaneous, and switching back and forth between branches generally just as fast.
12-
Unlike many other VCSs, Git encourages workflows that branch and merge often, even multiple times in a day.
13-
Understanding and mastering this feature gives you a powerful and unique tool and can entirely change the way that you develop.
9+
Κάποιοι θεωρούν ότι το μοντέλο διακλάδωσης του Git είναι το μεγαλύτερο προτέρημά του και πάντως είναι σίγουρα κάτι που κάνει το Git να ξεχωρίζει στην κοινότητα των VCS.
10+
Γιατί είναι τόσο ξεχωριστό;
11+
Ο τρόπος με τον οποίο το Git δημιουργεί διακλαδώσεις είναι απίστευτα ελαφρύς, κάτι που καθιστά τις εργασίες διακλάδωσης σχεδόν στιγμιαίες και τη μετάβαση από τον έναν κλάδο στον άλλο εξίσου γρήγορη.
12+
Σε αντίθεση με πολλά άλλα VCS, το Git ενθαρρύνει έναν τρόπο εργασίας κατά τον οποίο διακλαδώσεις και συγχωνεύσεις γίνονται συχνά, ακόμα και πολλές φορές μέσα σε μία ημέρα.
13+
Η κατανόηση και ευχέρεια στη χρήση αυτού του χαρακτηριστικού θα σας εφοδιάσει με ένα ισχυρό και μοναδικό εργαλείο, που μπορεί να αλλάξει ολοκληρωτικά τον τρόπο με τον οποίο αναπτύσσετε εφαρμογές.
1414

1515
include::sections/nutshell.asc[]
1616

@@ -26,7 +26,7 @@ include::sections/rebasing.asc[]
2626

2727
=== Summary
2828

29-
We've covered basic branching and merging in Git.
30-
You should feel comfortable creating and switching to new branches, switching between branches and merging local branches together.
31-
You should also be able to share your branches by pushing them to a shared server, working with others on shared branches and rebasing your branches before they are shared.
32-
Next, we'll cover what you'll need to run your own Git repository-hosting server.
29+
Καλύψαμε τα βασικά της δημιουργίας και συγχώνευσης κλάδων στο Git.
30+
Θα πρέπει να αισθάνεστε άνετα να δημιουργείτε κλάδους, να μεταβαίνετε σε αυτούς και να συγχωνεύετε τοπικούς κλάδους.
31+
Ακόμα θα πρέπει να μπορείτε να μοιράζεστε τους κλάδους σας προωθώντας τους σε έναν κοινόχρηστο διακομιστή, να δουλεύετε με άλλους σε κοινούς κλάδους και να αναπροσαμόζετε τους κλάδους σας προτού τους μοιραστείτε με άλλους.
32+
Στην συνέχεια θα εξετάσουμε τι χρειάζεται ώστε να λειτουργήσουμε έναν δικό μας διακομιστή που θα φιλοξενεί ένα αποθετήριο Git.

book/03-git-branching/sections/basic-branching-and-merging.asc

Lines changed: 90 additions & 93 deletions
Large diffs are not rendered by default.

book/03-git-branching/sections/branch-management.asc

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
=== Branch Management
33

44
(((branches, managing)))
5-
Now that you've created, merged, and deleted some branches, let's look at some branch-management tools that will come in handy when you begin using branches all the time.
5+
Τώρα που έχουμε δημιουργήσει, συγχωνεύσει και διαγράψει μερικούς κλάδους, ας δούμε μερικά εργαλεία διαχείρισης κλάδων που θα μας είναι χρήσιμα όταν αρχίσουμε να χρησιμοποιούμε κλάδους συνεχώς.
66

7-
The `git branch` command does more than just create and delete branches.(((git commands, branch)))
8-
If you run it with no arguments, you get a simple listing of your current branches:
7+
Η εντολή `git branch` εκτός από το να δημιουργεί και να διαγράφει κλάδους κάνει και κάποια άλλα πράγματα.(((git commands, branch)))
8+
Αν την τρέξουμε χωρίς ορίσματα, τότε παίρνουμε μία λίστα όλων των κλάδων:
99

1010
[source,console]
1111
----
@@ -15,9 +15,9 @@ $ git branch
1515
testing
1616
----
1717

18-
Notice the `*` character that prefixes the `master` branch: it indicates the branch that you currently have checked out (i.e., the branch that `HEAD` points to).
19-
This means that if you commit at this point, the `master` branch will be moved forward with your new work.
20-
To see the last commit on each branch, you can run `git branch -v`:
18+
Ο χαρακτήρας `*` πριν από τον κλάδο `master` επισημαίνει ότι ο κλάδος αυτός είναι ο τρέχων κλάδος, δηλαδή ο κλάδος στον οποίο δείχνει ο δείκτης `HEAD`).
19+
Αυτό σημαίνει ότι αν κάνουμε μία υποβολή σε αυτό το σημείο, ο κλάδος `master` θα προχωρήσει.
20+
Για να δούμε την τελευταία υποβολή του κάθε κλάδου μπορούμε να τρέξουμε την εντολή `git branch -v`:
2121

2222
[source,console]
2323
----
@@ -27,8 +27,8 @@ $ git branch -v
2727
testing 782fd34 add scott to the author list in the readmes
2828
----
2929

30-
The useful `--merged` and `--no-merged` options can filter this list to branches that you have or have not yet merged into the branch you're currently on.
31-
To see which branches are already merged into the branch you're on, you can run `git branch --merged`:
30+
Οι επιλογές `--merged` και `--no-merged` φιλτράρουν την λίστα των κλάδων και κρατούν μόνον όσους κλάδους έχουν και δεν έχουν ακόμα συγχωνευτεί με τον τρέχοντα κλάδο.
31+
Για να δούμε ποιοι κλάδοι έχουν ήδη συγχωνευτεί με τον τρέχοντα κλάδο, τρέχουμε την εντολή `git branch --merged`:
3232

3333
[source,console]
3434
----
@@ -37,19 +37,19 @@ $ git branch --merged
3737
* master
3838
----
3939

40-
Because you already merged in `iss53` earlier, you see it in your list.
41-
Branches on this list without the `*` in front of them are generally fine to delete with `git branch -d`; you've already incorporated their work into another branch, so you're not going to lose anything.
40+
Επειδή είχαμε ήδη συγχωνεύσει τον κλάδο `iss53` προηγουμένως, φαίνεται στην λίστα μας.
41+
Γενικά είναι ασφαλές να διαγράψουμε τους κλάδους σε αυτήν την λίστα που δεν έχουν το `*` χρησιμοποιώντας την εντολή `git branch -d`· έχουμε ήδη ενσωματώσει τις αλλαγές τους σε κάποιον άλλο κλάδο, συνεπώς δεν πρόκειται να χάσουμε τίποτα.
4242

43-
To see all the branches that contain work you haven't yet merged in, you can run `git branch --no-merged`:
43+
Για αν σούμε όλους τους κλάδους που περιέχουν εργασία που δεν έχουμε συγχωνεύσει σε κάποιον άλλο κλάδο ακόμα, μπορούμε να τρέξουμε την εντολή `git branch --no-merged`:
4444

4545
[source,console]
4646
----
4747
$ git branch --no-merged
4848
testing
4949
----
5050

51-
This shows your other branch.
52-
Because it contains work that isn't merged in yet, trying to delete it with `git branch -d` will fail:
51+
Αυτή μας δείχνει τον άλλο κλάδο.
52+
Επειδή αυτός ο κλάδος περιέχει δουλειά που δεν έχει ακόμα συγχωνευτεί σε κάποιον άλλο κλάδο, αν αποπειραθούμε να τον διαγράψουμε με την εντολή `git branch -d` θα αποτύχουμε:
5353

5454
[source,console]
5555
----
@@ -58,4 +58,5 @@ error: The branch 'testing' is not fully merged.
5858
If you are sure you want to delete it, run 'git branch -D testing'.
5959
----
6060

61-
If you really do want to delete the branch and lose that work, you can force it with `-D`, as the helpful message points out.
61+
Αν πραγματικά θέλετε να διαγράψετε έναν τέτοιο κλάδο και να χάσετε την δουλειά που περιέχει, μπορείτε να επιβάλετε την διαγραφή με την επιλογή `-D`, όπως υποδεικνύει και το παραπάνω μήνυμα.
62+

0 commit comments

Comments
 (0)