Skip to content

Commit 12d2031

Browse files
committed
Chapter 2: Started working on remotes
1 parent 8c12e8d commit 12d2031

File tree

3 files changed

+21
-18
lines changed

3 files changed

+21
-18
lines changed

TRANSLATION_NOTES.asc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ S
5555
*Source code* → Πηγαίος κώδικας +
5656
*Stage* → Καταχωρώ +
5757
*Staging area* → Περιοχή καταχώρησης
58+
*Stash* → Εναποθέτω
5859

5960
T
6061
~

book/02-git-basics/sections/remotes.asc

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
[[_remote_repos]]
2-
=== Working with Remotes
2+
=== Δουλεύοντας με απομακρυσμένα αποθετήρια
33

4-
To be able to collaborate on any Git project, you need to know how to manage your remote repositories.
5-
Remote repositories are versions of your project that are hosted on the Internet or network somewhere.
6-
You can have several of them, each of which generally is either read-only or read/write for you.
7-
Collaborating with others involves managing these remote repositories and pushing and pulling data to and from them when you need to share work.
8-
Managing remote repositories includes knowing how to add remote repositories, remove remotes that are no longer valid, manage various remote branches and define them as being tracked or not, and more.
9-
In this section, we'll cover some of these remote-management skills.
4+
Για να μπορέσετε να συνεργαστείτε σε οποιοδήποτε έργο στο Git, θα πρέπει να γνωρίζετε πως να διαχειρίζεστε τα απομακρυσμένα αποθετήριά σας.
5+
Τα απομακρυσμένα αποθετήρια είναι συγκεκριμένες εκδόσεις ενός έργου οι οποίες βρίσκονται στο διαδίκτυο ή σε κάποιο δίκτυο.
6+
Μπορείτε να δημιουργήσετε όσα θέλετε, συνήθως τα αποθετήρια αυτά είναι προσβάσιμα από εσάς μόνο.
7+
Για να μπορέσετε να συνεργαστείτε με άλλους και να τους κοινοποιήσετε την δουλειά σας, θα πρέπει να μπορείτε να διαχειριστείτε τα αποθετήρια αυτά, να τραβάτε και να ωθείτε δεδομένα σε αυτά.
8+
Η διαχείριση τέτοιων αποθετηρίων χρειάζεται ικανότητες όπως: πρόσθεση καινούριων απομακρυσμένων αποθετηρίων, διαγρφή αποθετηρίων που δεν είναι πλέον σε ισχύ, διαχείριση απομακρυσμένων κλάδων και πολλά άλλα.
9+
Στο κεφάλαιο αυτό, θα ασχοληθούμε με κάποιες από αυτές τις ικανότητες.
1010

1111
==== Showing Your Remotes
1212

13-
To see which remote servers you have configured, you can run the `git remote` command.(((git commands, remote)))
14-
It lists the shortnames of each remote handle you've specified.
15-
If you've cloned your repository, you should at least see origin – that is the default name Git gives to the server you cloned from:
13+
Για να δείτε τους απομακρυσμένους διακομιστές που έχετε ρυθμίσει, εκτελέστε την εντολή `git remote`.(((git commands, remote)))
14+
Η εντολή αυτή θα μας επιστρέψει μια λίστα με τα ονόματα των απομακρυσμένων που έχετε ορίσει.
15+
Αν έχετε κλωνοποιήσει το δικό σας αποθετήριο, θα πρέπει να πάρετε σαν αποτέλεσμα το όνομα origin. Αυτό είναι το προεπιλεγμένο όνομα που δίνει το Git στον διακομιστή από τον οποίο μόλις κλωνοποιήσατε:
1616

1717
[source,console]
1818
----
@@ -28,7 +28,7 @@ $ git remote
2828
origin
2929
----
3030

31-
You can also specify `-v`, which shows you the URLs that Git has stored for the shortname to be used when reading and writing to that remote:
31+
Μπορείτε επίσης να χρησιμοποιήσετε την επιλογή `-v`, η οποία θα σας επιστρέψει τα ονόματα των απομακρυσμένων αποθετηρίων σας μαζί με τις διευθύνσεις που είναι συσχετισμένες για εγγραφή και ανάγνωση σε αυτά:
3232

3333
[source,console]
3434
----
@@ -37,8 +37,8 @@ origin https://github.com/schacon/ticgit (fetch)
3737
origin https://github.com/schacon/ticgit (push)
3838
----
3939

40-
If you have more than one remote, the command lists them all.
41-
For example, a repository with multiple remotes for working with several collaborators might look something like this.
40+
Αν έχετε περισσότερα απομακρυσμένα, η εντολή αυτή θα τα απαριθμήσει όλα.
41+
Για παράδειγμα, αν συνεργάζονται πολλά άτομα σε ένα αποθετήριο τότε μπορεί να έχει και αντίστοιχα πολλά απομακρυσμένα:
4242

4343
[source,console]
4444
----
@@ -56,6 +56,8 @@ origin [email protected]:mojombo/grit.git (fetch)
5656
origin [email protected]:mojombo/grit.git (push)
5757
----
5858

59+
Αυτό μας βοηθάει ώστε να τραβήξουμε τις
60+
5961
This means we can pull contributions from any of these users pretty easily.
6062
We may additionally have permission to push to one or more of these, though we can't tell that here.
6163

book/02-git-basics/sections/undoing.asc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ Changes to be committed:
123123
=====
124124
Είναι σημαντικό να καταλάβετε ότι η εντολή `git checkout -- [file]` είναι αρκετά επικίνδυνη.
125125
Όλες οι αλλαγές που έχετε κάνει σε αυτό το αρχείο έχουν πλέον χαθεί καθώς έχετε αντιγράψει ένα αρχείο πάνω από αυτό.
126-
Μην χρησιμοποιείτε την εντολή αυτή εκτός αν είσαστε σίγουροι ότι δεν θέλετε να κρατήσετε τις αλλαγές σας.
126+
Μην χρησιμοποιείτε την εντολή αυτή παρά μόνο αν είσαστε σίγουροι ότι δεν θέλετε να κρατήσετε τις αλλαγές σας.
127127
=====
128128

129-
If you would like to keep the changes you've made to that file but still need to get it out of the way for now, we'll go over stashing and branching in <<_git_branching>>; these are generally better ways to go.
129+
Αν θέλετε να κρατήσετε τις αλλαγές που κάνατε στο αρχείο, αλλά παρόλα αυτά χρειάζεστε να το κάνετε στην άκρη, θα πρέπει να εξετάσουμε την εναπόθεση(stashing) και την διακλάδωση(branching) στο κεφάλαιο <<_git_branching>>.
130130

131-
Remember, anything that is __committed__ in Git can almost always be recovered.
132-
Even commits that were on branches that were deleted or commits that were overwritten with an `--amend` commit can be recovered (see <<_data_recovery>> for data recovery).
133-
However, anything you lose that was never committed is likely never to be seen again.
131+
Να θυμάστε ότι οτιδήποτε είναι υποβεβλημένο στο Git μπορεί να ανακτηθεί.
132+
Μπορείτε να ανακτήσετε ακόμα και υποβολές σε κλάδους που έχουν διαγραφεί ή υποβολές που επανεγγράφηκαν, με την εντολή `git commit --amend` (βλ. <<_data_recovery>> για περισσότερα πάνω στην ανάκτηση δεδομένων).
133+
Ωστόσο, αν κάτι δεν είναι υποβεβλημένο και το χάσετε, είναι πολύ πιθανό να μην μπορέσετε να το ανακτήσετε.

0 commit comments

Comments
 (0)