Skip to content

Commit 18ecf6f

Browse files
committed
Sync and translate files
1 parent 1c8ffab commit 18ecf6f

26 files changed

+187
-310
lines changed

.github/workflows/pr-build.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,11 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v3
1212

13-
- name: Download bootstrap file
14-
run: wget https://raw.githubusercontent.com/progit/progit2-pub/master/bootstrap.sh
15-
- name: Run bootstrap
16-
run: sh bootstrap.sh
1713
- name: Set up Ruby
1814
uses: ruby/setup-ruby@v1
1915
with:
20-
ruby-version: 2.7
16+
ruby-version: 3.1
2117
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
2218

2319
- name: Build book
24-
run: bundle exec rake book:build_action
20+
run: bundle exec rake book:build

.github/workflows/release-on-merge.yml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,32 +11,28 @@ jobs:
1111
- uses: actions/checkout@v3
1212
with:
1313
fetch-depth: 0
14-
- name: get bootstrap file
15-
run: wget https://raw.githubusercontent.com/progit/progit2-pub/master/bootstrap.sh
16-
- name: run bootstrap
17-
run: sh bootstrap.sh
18-
- name: Compute tag name
19-
id: compute-tag
20-
run: |
21-
echo Computing next tag number
22-
LASTPATCH=$(git describe --tags | cut -d- -f1 | cut -d. -f3)
23-
PATCH=$(($LASTPATCH+1))
24-
echo "::set-output name=tagname::2.1.${PATCH}"
25-
echo "::set-output name=branch::${GITHUB_REF#refs/heads/}"
2614

2715
- name: Set up Ruby
2816
uses: ruby/setup-ruby@v1
2917
with:
30-
ruby-version: 2.7
18+
ruby-version: 3.1
3119
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
3220

3321
- name: Build release assets
34-
run: bundle exec rake book:build_action
22+
run: bundle exec rake book:build
23+
24+
- name: Compute tag name
25+
id: compute-tag
26+
run: |
27+
echo Computing next tag number
28+
LASTPATCH=$(git describe --tags | cut -d- -f1 | cut -d. -f3)
29+
PATCH=$(($LASTPATCH+1))
30+
echo "{tagname}={2.1.${PATCH}}" >> $GITHUB_OUTPUT
3531
3632
- name: Create release
3733
uses: ncipollo/release-action@v1
3834
with:
3935
token: ${{ secrets.GITHUB_TOKEN }}
4036
tag: ${{ steps.compute-tag.outputs.tagname }}
41-
commit: ${{ steps.compute-tag.outputs.branch }}
42-
artifacts: './progit.epub,./progit.mobi,./progit.pdf,./progit.html'
37+
commit: main
38+
artifacts: './progit.epub,./progit.fb2.zip,./progit.mobi,./progit.pdf,./progit.html'

A-git-in-other-environments.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[appendix]
33
== Git v drugih okoljih
44

5-
Če ste prebrali celotno knjibo, ste se naučili veliko o tem, kako uporabljati Git v ukazni vrstici.
5+
Če ste prebrali celotno knjigo, ste se naučili veliko o tem, kako uporabljati Git v ukazni vrstici.
66
Lahko delate z lokalnimi datotekami, povežete vaš repozitorij z drugimi preko omrežja in učinkovito sodelujete z ostalimi.
77
Vendar zgodba se tu ne konča; Git je običajno uporabljen kot del večjega ekosistema in terminal ni vedno najboljši način za delo z njim.
88
Sedaj bomo pogledali nekaj drugih vrst okolj, kjer je Git lahko uporaben in kako druge aplikacije (vključno z vašo) delajo skupaj z Gitom.

B-embedding-git-in-your-applications.asc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
Tudi aplikacije, ki niso namenjene razvijalcem, kot so urejevalniki dokumentov, lahko potencialno koristijo lastnosti kontrole verzij in Gitov model deluje zelo dobro za mnoge različne scenarije.
77

88
Če potrebujete integrirati Git z vašo aplikacijo, imate v osnovi dve opciji: ustvariti ukazno vrstico in klicati `git` ukaz, ali pa vdelati knjižnico Git v vašo aplikacijo.
9+
Tu bomo pogledali integracijo z ukazno vrstico in nekaj najbolj priljubljenih knjižnic Git za vdelavo.
910

1011
include::book/B-embedding-git/sections/command-line.asc[]
1112

C-git-commands.asc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
[[C-git-commands]]
22
[appendix]
3-
== Git Commands
3+
== Ukazi Git
44

5-
Throughout the book we have introduced dozens of Git commands and have tried hard to introduce them within something of a narrative, adding more commands to the story slowly.
6-
However, this leaves us with examples of usage of the commands somewhat scattered throughout the whole book.
5+
Skozi knjigo smo predstavili desetine ukazov Git in se trudili, da bi jih predstavili znotraj neke vrste pripovedi s postopnim dodajanjem več ukazov v zgodbo.
6+
Vendar pa to pusti primere uporabe ukazov nekoliko razpršene po celotni knjigi.
77

8-
In this appendix, we'll go through all the Git commands we addressed throughout the book, grouped roughly by what they're used for.
9-
We'll talk about what each command very generally does and then point out where in the book you can find us having used it.
8+
V tem dodatku bomo pregledali vse ukaze Git, ki smo jih obravnavali v knjigi, približno razvrščene glede na to, za kaj se uporabljajo.
9+
Govorili bomo o tem, kaj vsak ukaz na splošno naredi, in nato poudarili, kje v knjigi smo ga uporabili.
1010

1111
[TIP]
1212
====
13-
You can abbreviate long options.
14-
For example, you can type in `git commit --a`, which acts as if you typed `git commit --amend`.
15-
This only works when the letters after `--` are unique for one option.
16-
Do use the full option when writing scripts.
13+
Dolge možnosti lahko skrajšate.
14+
Na primer, vtipkate lahko `git commit --a`, kar deluje tako, kot da bi vtipkali `git commit --amend`.
15+
To deluje samo, če so črke po `--` edinstvene za eno možnost.
16+
Pri pisanju skript uporabljajte polno opcijo.
1717
====
1818

19-
=== Setup and Config
19+
=== Nastavitev in konfiguracija
2020

2121
There are two commands that are used quite a lot, from the first invocations of Git to common every day tweaking and referencing, the `config` and `help` commands.
2222

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The issue may have already been corrected in the source files, but not yet deplo
1818
Errata and basic clarifications will be accepted if we agree that they improve the content.
1919
You can also open an issue so that we can discuss how or if the issue needs to be addressed.
2020

21-
If you've never done this before, the [flow guide](https://guides.github.com/introduction/flow/) might be useful.
21+
If you've never done this before, the [flow guide](https://docs.github.com/en/get-started/quickstart/github-flow) might be useful.
2222

2323
## Large Rewrites
2424

@@ -29,7 +29,7 @@ It's unlikely that your prose is going to be *so* much better that it's worth ch
2929

3030
## Figures
3131

32-
The images in this book are generated using [Sketch 3](https://www.sketchapp.com/), with the [included sketchbook file](diagram-source/progit.sketch).
32+
The images in this book are generated using [Sketch 3](https://www.sketch.com/), with the [included sketchbook file](diagram-source/progit.sketch).
3333

3434
To create a figure:
3535

LICENSE.asc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
2-
To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/3.0 or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
1+
To delo je izdano pod "Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported" licenco.
2+
Za ogled kopije te licence obiščite https://creativecommons.org/licenses/by-nc-sa/3.0 ali pošljite sporočilo na Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.

README.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ The issue may have already been corrected, but the changes have not been deploye
6666

6767
== Contributing
6868

69-
If you'd like to help out by making a change, take a look at the link:CONTRIBUTING.md[contributor's guide].
69+
If you'd like to help out by making a change, take a look at the link:CONTRIBUTING.md[contributor's guide].

0 commit comments

Comments
 (0)