Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Git Presentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Réthelyi Bálint
Git Presentation
Commits
d56a83ea
Commit
d56a83ea
authored
4 years ago
by
Rafael László
Browse files
Options
Downloads
Patches
Plain Diff
installation
parent
3c76cd88
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/workshop/1_installation.md
+94
-4
94 additions, 4 deletions
docs/workshop/1_installation.md
docs/workshop/img/.gitkeep
+0
-0
0 additions, 0 deletions
docs/workshop/img/.gitkeep
with
94 additions
and
4 deletions
docs/workshop/1_installation.md
+
94
−
4
View file @
d56a83ea
...
...
@@ -9,7 +9,7 @@ alkalmazásból.
## Telepítés
### Windows
###
#
Windows
Elég egyszerű a telepítés.
Felmész a
[
https://git-scm.com/download/win
](
https://git-scm.com/download/win
)
címre és az ott lévő .exe fájlt letöltöd.
...
...
@@ -21,7 +21,7 @@ Desktop is egy jó opció. Ez magába foglalja mind a konzolos,
mind az asztali programot.
[
https://desktop.github.com/
](
https://desktop.github.com/
)
### MacOS
###
#
MacOS
Nincs sok tapasztalatom vele, de ha megpróbálod konzolból
kiadni a
...
...
@@ -30,9 +30,9 @@ parancsot, akkor fel fogja ajánlani,
hogy telepítsd. Itt kapsz egy telepítőt és az alapértelmezett
beállításain végig mész.
### Linux
###
#
Linux
Talán a legtriviálisabb. Attól függően milyen disztrót használsz
Talán a legtriviálisabb. Attól függően milyen disztrót használsz
,
letölthető a megfelelő csomagkezelővel.
RPM alapúak (Fedora, RHEL, CentOS, ...):
`sudo dnf install git`
...
...
@@ -42,4 +42,94 @@ Debian alapúak (Ubuntu, ...):
Többi Disztróra:
[
git-scm.com/download/linux
](
https://git-scm.com/download/linux
)
## Konfiguráció
### Hol vannak a konfigok?
Legegyszerűbben ezzel a paranccsal lehet a jelenlegi konfig
fájlok helyzetét kiírni:
`git config --list --show-origin`
Látható, hogy a konfigok valamilyen config fájlba menti
a fájlrendszerben elszórva. Erről egy pár táblázat:
##### Windows
| Scope | Hely | Fájlnév |
| -------- | ---------------------------- | --------------- |
| Rendszer | mingw32
\e
tc vagy mingw64
\e
tc | gitconfig |
| Globális | C:
\U
sers
\\
<felhasználónév>
| .gitconfig |
| Lokális | Git repo .git mappája | config |
| Worktree | Git repo .git mappája | config.worktree |
| Portable | C:
\P
rogramData
\G
it
\
| config |
##### Linux (Ubuntu)
(MacOS ehhez hasonló)
| Scope | Hely | Fájlnév |
| -------- | --------------------- | --------------- |
| Rendszer | /etc | gitconfig |
| Globális | ~ | .gitconfig |
| Lokális | Git repo .git mappája | config |
| Worktree | Git repo .git mappája | config.worktree |
Nálam a konfig a home mappámban például így néz ki:
```
$ cat ~/.gitconfig
[user]
email = rlacko99@gmail.com
name = Rafael László
```
### Állítsuk be a dolgokat magunknak
##### Saját adatok
Először is a saját adataink:
```
$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com
```
##### Szövegszerkesztő
Állítsuk be a szövegszerkesztőnket.
Erre főként a mentéspontokhoz tartozó üzenet megírásához van
szükség.
```
$ git config --global core.editor nano
```
vagy például notepad++-ra windows-on:
```
$ git config --global core.editor "'C:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
```
##### Jelenlegi konfig
Nézzük meg mik az összes beállításunk:
```
$ git config --list
user.email=rlacko99@gmail.com
user.name=Rafael László
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
...
```
Ha pedig csak egy adottat szeretnénk:
```
$ git config user.name
Rafael László
```
[
Előző
](
intro/3_history
)
|
[
Következő
](
workshop/2_basics
)
This diff is collapsed.
Click to expand it.
docs/workshop/img/.gitkeep
0 → 100644
+
0
−
0
View file @
d56a83ea
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment