Skip to content

Commit 4c93a8d

Browse files
committed
glossary and intersphinx to git-intro
1 parent c49923e commit 4c93a8d

3 files changed

Lines changed: 62 additions & 28 deletions

File tree

content/concepts.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121

2222
## Commits, branches, repositories, forks, clones
2323

24-
- **repository**: The project, contains all data and history (commits, branches, tags).
25-
- **commit**: Snapshot of the project, gets a unique identifier (e.g. `c7f0e8bfc718be04525847fc7ac237f470add76e`).
26-
- **branch**: Independent development line. The main development line is often called `main`.
27-
- **tag**: A pointer to one commit, to be able to refer to it later. Like a [commemorative plaque](https://en.wikipedia.org/wiki/Commemorative_plaque)
24+
- {term}`repository`: The project, contains all data and history (commits, branches, tags).
25+
- {term}`commit`: Snapshot of the project, gets a unique identifier (e.g. `c7f0e8bfc718be04525847fc7ac237f470add76e`).
26+
- {term}`branch`: Independent development line. The main development line is often called `main`.
27+
- {term}`tag`: A pointer to one commit, to be able to refer to it later. Like a [commemorative plaque](https://en.wikipedia.org/wiki/Commemorative_plaque)
2828
that you attach to a particular commit (e.g. `phd-printed` or `paper-submitted`).
29-
- **cloning**: Copying the whole repository to your laptop - the first time. It is not necessary to download each file one by one.
30-
- **forking**: Taking a copy of a repository (which is typically not yours) - your
29+
- {term}`cloning <clone>`: Copying the whole repository to your laptop - the first time. It is not necessary to download each file one by one.
30+
- {term}`forking <fork>`: Taking a copy of a repository (which is typically not yours) - your
3131
copy (fork) stays on GitHub/GitLab and you can make changes to your copy.
3232

3333

content/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
# remove once sphinx_rtd_theme updated for contrast and accessibility:
3838
"sphinx_rtd_theme_ext_color_contrast",
3939
"sphinx_coderefinery_branding",
40+
"sphinx.ext.intersphinx",
4041
]
4142

4243
# MyST extensions
@@ -65,6 +66,10 @@
6566
"img/README.md",
6667
]
6768

69+
intersphinx_mapping = {
70+
'git-intro': ('https://coderefinery.github.io/git-intro/', None) }
71+
72+
6873

6974
# -- Options for HTML output -------------------------------------------------
7075

content/reference.md

Lines changed: 51 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,57 @@ the basics.
1212

1313
## Glossary
1414

15-
* **remote**: Roughly, another git repository on another computer. A
16-
repository can be linked to several other remotes.
17-
* **push**: Send a branch from your current repository to another repository
18-
* **fetch**: Update your view of another repository
19-
* **pull**: Fetch (above) and then merge
20-
* **origin**: Default name for a remote repository.
21-
* **origin/NAME**: A branch name which represents a remote branch.
22-
* **main**: Default name for main branch.
23-
* **merge**: Combine the changes on two branches.
24-
* **conflict**: When a merge has changes that affect the same lines,
25-
git can not automatically figure out what to do. It presents the
26-
conflict to the user to resolve.
27-
* **issue**: Feature of web repositories that allows discussion
28-
related to a repository.
29-
* **pull request**: A GitHub/Gitlab feature that allows you to send a
30-
code suggestion using a branch, which allows one-button merging. In
31-
Gitlab, called "**merge request**".
32-
* **git hook**: Code that can run before or after certain actions, for
33-
example to do tests before allowing you to commit.
34-
* **bare repository**: A copy of a repository that only is only the `.git`
35-
directory: there are no files actually checked out. Directory names
36-
usually like `something.git`
15+
:::{glossary}
16+
17+
remote
18+
Roughly, another git repository on another computer. A
19+
repository can be linked to several other remotes.
20+
21+
push
22+
Send a branch from your current repository to another repository
23+
24+
fetch
25+
Update your view of another repository
26+
27+
pull
28+
Fetch (above) and then merge
29+
30+
origin
31+
Default name for a remote repository.
32+
33+
origin/NAME
34+
A branch name which represents a remote branch.
35+
36+
main
37+
Default name for main branch.
38+
39+
merge
40+
Combine the changes on two branches.
41+
42+
conflict
43+
When a merge has changes that affect the same lines,
44+
git can not automatically figure out what to do. It presents the
45+
conflict to the user to resolve.
46+
47+
issue
48+
Feature of web repositories that allows discussion
49+
related to a repository.
50+
51+
pull request
52+
A GitHub/Gitlab feature that allows you to send a
53+
code suggestion using a branch, which allows one-button merging. In
54+
Gitlab, called "**merge request**".
55+
56+
git hook
57+
Code that can run before or after certain actions, for
58+
example to do tests before allowing you to commit.
59+
60+
bare repository
61+
A copy of a repository that only is only the `.git`
62+
directory: there are no files actually checked out. Directory names
63+
usually like `something.git`
64+
65+
:::
3766

3867

3968
## Commands we use

0 commit comments

Comments
 (0)