1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 14:02:08 +02:00
tldr/pages.de/common/git-commit.md
bl-ue 9614569655
multiple pages, MAINTAINERS: remove trailing whitespace at line ends (#5151)
* multiple pages: remove trailing whitespace at the end of lines

* MAINTAINERS: remove trailing whitespace at the end of lines
2021-01-16 10:33:31 -05:00

20 lines
585 B
Markdown

# git commit
> Commit Dateien in das Repository.
> Mehr Informationen: <https://git-scm.com/docs/git-commit>.
- Commiten von gestagten Dateien zum Repository mit einer Nachricht:
`git commit -m {{message}}`
- Automatisches Stagen aller modifizierten Datei und nachfolgendem Commiten mit einer Nachricht:
`git commit -a -m {{message}}`
- Ersetzt den letzten Commit mit den gerade auf dem Stage liegenden Änderungen:
`git commit --amend`
- Nur spezifische Dateien commiten (die Dateien müssen schon auf dem Stage liegen)
`git commit {{path/to/my/file1}} {{path/to/my/file2}}`