-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve code highlighting up to chapter 7
- Loading branch information
Showing
18 changed files
with
102 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,7 +77,7 @@ Da uporabite programski popravek generiran s `format-patch`, uporabite `git am` | |
Tehnično je `git am` zgrajen, da prebere datoteko mbox, ki je enostaven tekstovni format za shranjevanje enega ali več e-poštnih sporočil v eni tekstovni datoteki. | ||
Videti je nekako takole: | ||
|
||
[source,console] | ||
[source,email] | ||
---- | ||
From 330090432754092d704da8e76ca5c05c198e71a8 Mon Sep 17 00:00:00 2001 | ||
From: Jessica Smith <[email protected]> | ||
|
@@ -103,7 +103,7 @@ Vidite lahko, da se je programski popravek uporabil brez težav in samodejno ust | |
Informacije o avtorju so vzete iz glav `From` in `Date` v e-pošti, sporočilo potrditve pa je vzeto iz `Subject` in telesa (pred popravkom) e-pošte. | ||
Če je bil na primer ta programski popravek uporabljen iz zgornjega primera mbox, bi bila ustvarjena potrditev nekaj podobnega temu: | ||
|
||
[source,console] | ||
[source,console?prompt=$] | ||
---- | ||
$ git log --pretty=fuller -1 | ||
commit 6c5e70b984a60b3cecd395edd5b48a7575bf58e0 | ||
|
@@ -209,7 +209,7 @@ Druga prednost tega pristopa je, da dobite tudi zgodovino opravljenih potrditev. | |
Če ne sodelujete redno z osebo, vendar še vedno želite povleči od njih na ta način, lahko naslov URL oddaljenega repozitorija navedete v ukazu `git pull`. | ||
To naredi enkratno vlečenje in ne shrani URL-ja kot referenčnega oddaljenega vira: | ||
|
||
[source,console] | ||
[source,console?prompt=$] | ||
---- | ||
$ git pull https://github.com/onetimeguy/project | ||
From https://github.com/onetimeguy/project | ||
|
@@ -230,7 +230,7 @@ Potrditve v veji `master` lahko izključite tako, da pred imenom veje dodate mo | |
To stori isto kot oblika `master..contrib`, ki smo jo uporabili prej. | ||
Na primer, če vam sodelavec pošlje dve potrditvi in ustvarite vejo z imenom `contrib` ter nanjo uporabite te potrditve, lahko zaženete: | ||
|
||
[source,console] | ||
[source,console?prompt=$] | ||
---- | ||
$ git log contrib --not master | ||
commit 5b6235bd297351589efc4d73316f0a68d484f118 | ||
|
@@ -433,7 +433,7 @@ Ko se odločite za izdajo, boste verjetno želeli dodeliti oznako, da boste lahk | |
Novo oznako lahko ustvarite, kot je opisano v <<ch02-git-basics-chapter#ch02-git-basics-chapter>>. | ||
Če se odločite podpisati oznako kot vzdrževalec, je lahko postopek označevanja videti nekako takole: | ||
|
||
[source,console] | ||
[source,console?prompt=$] | ||
---- | ||
$ git tag -s v1.5 -m 'my signed 1.5 tag' | ||
You need a passphrase to unlock the secret key for | ||
|
@@ -445,7 +445,7 @@ user: "Scott Chacon <[email protected]>" | |
Vzdrževalec projekta Git je to težavo rešil tako, da je svoj javni ključ vključil kot blob v repozitoriju in nato dodal oznako, ki neposredno kaže na ta vsebino. | ||
Kateri ključ želite, lahko ugotovite tako, da zaženete ukaz `gpg --list-keys`: | ||
|
||
[source,console] | ||
[source,console?prompt=$] | ||
---- | ||
$ gpg --list-keys | ||
/Users/schacon/.gnupg/pubring.gpg | ||
|
@@ -535,7 +535,7 @@ Zdaj imate lep tarball in arhiv zip vaše projektne izdaje, ki ju lahko naložit | |
Lep način hitrega pridobivanja vrste sprememb, ki so bile dodane v vaš projekt od zadnje objave ali e-pošte, je uporaba ukaza `git shortlog`. | ||
Povzame vse potrditve v določenem obsegu; na primer, naslednje vam da povzetek vseh potrditev od zadnje objave, če je bila vaša zadnja objava poimenovana `v1.0.1`: | ||
[source,console] | ||
[source,console?prompt=$] | ||
---- | ||
$ git shortlog --no-merges master --not v1.0.1 | ||
Chris Wanstrath (6): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -154,7 +154,7 @@ To pomeni, da lahko precej enostavno povlečete vse veje zahtevka potega v enem | |
|
||
Sedaj lahko na primer prenesete referenco neposredno. | ||
|
||
[source,console] | ||
[source,console?prompt=$] | ||
---- | ||
$ git fetch origin refs/pull/958/head | ||
From https://github.com/libgit2/libgit2 | ||
|
@@ -193,7 +193,7 @@ To področje lahko spremenite in dodate nov refspec: | |
Ta zadnja vrstica sporoči Gitu: "`Vse sklice, ki so videti kot `refs/pull/123/head`, naj se lokalno shrani kot `refs/remotes/origin/pr/123`.`" | ||
Če zdaj shranite to datoteko in izvedete `git fetch`: | ||
|
||
[source,console] | ||
[source,console?prompt=$] | ||
---- | ||
$ git fetch | ||
# … | ||
|
@@ -294,7 +294,7 @@ V glavah e-poštnih sporočil, ki jih GitHub pošilja, je tudi precejšnje štev | |
|
||
Na primer, če si ogledamo dejanske glave e-pošte, ki jih GitHub pošilja Tonyju v e-poštnem sporočilu, prikazanem v <<_email_pr>>, bomo med poslano informacijo videli: | ||
|
||
[source,mbox] | ||
[source,email] | ||
---- | ||
To: tonychacon/fade <[email protected]> | ||
Message-ID: <tonychacon/fade/pull/[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.