Standard template applied. git add and commit sequence improved. git commit -s to use text editor

This commit is contained in:
hank L 2023-02-11 21:57:56 +00:00
commit 629d38defc

View file

@ -1,6 +1,6 @@
= How to Create and Use a Local Fedora Documentation Workflow
Fedora Documentation Team <https://discussion.fedoraproject.org/tag/docs>
v1.0, 2022-12-16
:revdate: 2023-02-11
[abstract]
____
@ -141,10 +141,10 @@ To see what has been going on with git add and git commit commands.
$ git status
----
To specify which files will be committed,
To add changes which will be committed,
----
$ git add <file>
$ git add -A
----
Alternatively, to add all the files in the current working directory,
@ -153,16 +153,10 @@ Alternatively, to add all the files in the current working directory,
$ git add .
----
When you commit, always include a clear commit message.
Prepare changes for upload, which will open text editor to add commit message.
----
$ git commit -m "commit message"
----
If you committed with wrong messages,
----
$ git commit --amend -m "new commit message"
$ git commit -s
----
The git log command displays the project history and specific changes.