mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-27 07:33:57 +00:00
add more commit examples
This commit is contained in:
parent
4ffa934f61
commit
340a7b6d78
@ -205,6 +205,12 @@ Speichert die aktuellen Inhalte des Index in einen neuen *Commit*. Dieser Commit
|
|||||||
```bash
|
```bash
|
||||||
# Commit mit Beschreibung erstellen.
|
# Commit mit Beschreibung erstellen.
|
||||||
$ git commit -m "Added multiplyNumbers() function to HelloWorld.c"
|
$ git commit -m "Added multiplyNumbers() function to HelloWorld.c"
|
||||||
|
|
||||||
|
# Alle veränderten oder gelöschten Dateien außer neue Dateien werden gestaged und dann wird ein Commit erstellt.
|
||||||
|
$ git commit -a -m "Modified foo.php and removed bar.php"
|
||||||
|
|
||||||
|
# Ändert den letzten Commit (der letzte Commit wird mit einem neuen Commit ersetzt)
|
||||||
|
$ git commit --amend -m "Correct message"
|
||||||
```
|
```
|
||||||
|
|
||||||
### diff
|
### diff
|
||||||
|
Loading…
Reference in New Issue
Block a user