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
Copy file name to clipboardExpand all lines: book/09-git-and-other-scms/sections/import-p4.asc
+25-25Lines changed: 25 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,23 @@
1
1
[[_perforce_import]]
2
2
==== Perforce
3
3
4
-
(((Perforce)))(((Importing, from Perforce)))
5
-
The next system you'll look at importing from is Perforce.
6
-
As we discussed above, there are two ways to let Git and Perforce talk to each other: git-p4 and Perforce Git Fusion.
4
+
(((Perforce)))(((Εσιαγωγή αποθετηρίου, από Perforce)))
5
+
Το επόμενο σύστημα από το οποίο θα εξετάσουμε την εισαγωγή είναι το Perforce.
6
+
Όπως συζητήσαμε παραπάνω, υπάρχουν δύο τρόποι να αφήσουμε τα Git και Perforce να μιλήσουν μεταξύ τους: οι `git-p4` και Perforce Git Fusion.
7
7
8
8
===== Perforce Git Fusion
9
9
10
-
Git Fusion makes this process fairly painless.
11
-
Just configure your project settings, user mappings, and branches using a configuration file (as discussed in <<_p4_git_fusion>>), and clone the repository.
12
-
Git Fusion leaves you with what looks like a native Git repository, which is then ready to push to a native Git host if you desire.
13
-
You could even use Perforce as your Git host if you like.
10
+
Το Git Fusion καθιστά αυτή τη διαδικασία αρκετά ανώδυνη.
11
+
Απλά διαμορφώνουμε τις ρυθμίσεις του έργου, τις αντιστοιχίσεις χρηστών και τους κλάδους μας χρησιμοποιώντας ένα αρχείο διαμόρφωσης (όπως αναλύθηκε στην ενότητα <<_p4_git_fusion>>) και κλωνοποιούμε το αποθετήριο.
12
+
Το Git Fusion μας αφήνει με κάτι που μοιάζει με εγγενές αποθετήριο Git, το οποίο είναι έτοιμο να ωθήσει σε έναν εγγενή κεντρικό υπολογιστή Git, εφόσον το επιθυμούμε.
13
+
Θα μπορούσαμε ακόμη και να χρησιμοποιήσουμε το Perforce ως τον κεντρικό υπολογιστή του Git, αν θέλουμε.
14
14
15
15
[[_git_p4]]
16
16
===== Git-p4
17
17
18
-
Git-p4 can also act as an import tool.
19
-
As an example, we'll import the Jam project from the Perforce Public Depot.
20
-
To set up your client, you must export the P4PORT environment variable to point to the Perforce depot:
18
+
Το Git-p4 μπορεί επίσης να λειτουργήσει ως εργαλείο εισαγωγής.
19
+
Για παράδειγμα, θα εισάγουμε το έργο Jam από το Δημόσια Αποθήκη Perforce (Perforce Public Depot).
20
+
Για να ρυθμίσουμε τον πελάτη μας, πρέπει να εξάγουμε τη μεταβλητή περιβάλλοντος `P4PORT` για να δείξουμε στην αποθήκη Perforce:
In order to follow along, you'll need a Perforce depot to connect with.
30
-
We'll be using the public depot at public.perforce.com for our examples, but you can use any depot you have access to.
29
+
Για τη συνέχεια της επίδειξης, θα χρειαστεί να συνδεθούμε σε μία αποθήκη Perforce.
30
+
Θα χρησιμοποιήσουμε τη δημόσια αποθήκη στο public.perforce.com για τα παραδείγματα μας, αλλά μπορούμε να χρησιμοποιήσουμε οποιαδήποτε αποθήκη στην οποία έχουμε πρόσβαση.
31
31
====
32
32
33
-
(((git commands, p4)))
34
-
Run the `git p4 clone` command to import the Jam project from the Perforce server, supplying the depot and project path and the path into which you want to import the project:
33
+
(((εντολές git, p4)))
34
+
Εκτελούμε την εντολή `git p4 clone` για να εισάγουμε το έργο Jam από τον διακομιστή Perforce, παρέχοντας την αποθήκη, τη διαδρομή έργου και τη διαδρομή στην οποία θέλουμε να εισάγουμε το έργο:
This particular project has only one branch, but if you have branches that are configured with branch views (or just a set of directories), you can use the `--detect-branches` flag to `git p4 clone` to import all the project's branches as well.
46
-
See <<_git_p4_branches>> for a bit more detail on this.
45
+
Αυτό το συγκεκριμένο έργο έχει μόνο έναν κλάδο, αλλά αν έχουμε κλάδους που έχουν διαμορφωθεί με προβολές κλάδων (ή απλώς ένα σύνολο καταλόγων), μπορούμε να χρησιμοποιήσουμε τη σημαία `--detect-branches` στην `git p4 clone` για να εισάγουμε όλους τους κλάδους του έργου.
46
+
Βλ. ενότητα <<_git_p4_branches>> για λίγο περισσότερες λεπτομέρειες σχετικά με αυτό.
47
47
48
-
At this point you're almost done.
49
-
If you go to the `p4import` directory and run `git log`, you can see your imported work:
48
+
Σε αυτό το σημείο είμαστε σχεδόν έτοιμοι.
49
+
Εάν μεταβούμε στον κατάλογο `p4import` και εκτελέσουμε την `git log`, μπορούμε να δούμε την εργασία που εισάγαμε:
If you run `git log`, you can see that all the SHA-1 checksums for the commits have changed, but the `git-p4` strings are no longer in the commit messages:
84
+
Αν εκτελέσουμε την `git log`, μπορούμε να δούμε ότι όλα τα αθροίσματα ελέγχου SHA-1 για τις υποβολές έχουν αλλάξει αλλά οι συμβολοσειρές `git-p4` δεν βρίσκονται πλέον στα μηνύματα commit:
0 commit comments