update README
This commit is contained in:
parent
b1e3a10586
commit
2c283e176a
@ -6,28 +6,13 @@ include_toc: true
|
||||
|
||||
## Grundlagen
|
||||
|
||||
### Repository initialisieren
|
||||
### Das Drei-Stufen-Konzept
|
||||
|
||||
Ein neues Git-Repository erstellen:
|
||||
Git arbeitet mit drei Bereichen:
|
||||
|
||||
```bash
|
||||
git init
|
||||
```
|
||||
|
||||
Oder ein bestehendes Repository klonen:
|
||||
|
||||
```bash
|
||||
git clone <repository-url>
|
||||
|
||||
# Beispiel mit HTTPS
|
||||
git clone https://github.com/user/repository.git
|
||||
|
||||
# Beispiel mit SSH
|
||||
git clone git@github.com:user/repository.git
|
||||
|
||||
# Mit spezifischem Verzeichnisnamen
|
||||
git clone <repository-url> <verzeichnisname>
|
||||
```
|
||||
- __Working Directory__ (Arbeitsverzeichnis) - hier bearbeitest du deine Dateien
|
||||
- __Staging Area__ - hier sammelst du Änderungen, die du committen möchtest
|
||||
- __Repository__ - hier werden die Commits gespeichert
|
||||
|
||||
### Git Konfiguration
|
||||
|
||||
@ -53,6 +38,29 @@ git config user.name "Anderer Name"
|
||||
git config user.email
|
||||
```
|
||||
|
||||
### Repository initialisieren
|
||||
|
||||
Ein neues Git-Repository erstellen:
|
||||
|
||||
```bash
|
||||
git init
|
||||
```
|
||||
|
||||
Oder ein bestehendes Repository klonen:
|
||||
|
||||
```bash
|
||||
git clone <repository-url>
|
||||
|
||||
# Beispiel mit HTTPS
|
||||
git clone https://github.com/user/repository.git
|
||||
|
||||
# Beispiel mit SSH
|
||||
git clone git@github.com:user/repository.git
|
||||
|
||||
# Mit spezifischem Verzeichnisnamen
|
||||
git clone <repository-url> <verzeichnisname>
|
||||
```
|
||||
|
||||
### Remote Repositories verwalten
|
||||
|
||||
```bash
|
||||
|
||||
Loading…
Reference in New Issue
Block a user