Updates git log Guide
All checks were successful
Build and Deploy Documentation / build-and-deploy (push) Successful in 4s

This commit is contained in:
2025-12-05 09:57:25 +01:00
parent 8d462c838b
commit 656fae3f82

View File

@@ -95,40 +95,24 @@ git commit -S -m "Your commit message"
---
## Notes
- Always ensure your branch is up-to-date before pushing:
```bash
git pull --rebase
```
- Configure your GPG key once globally for signed commits:
```bash
git config --global user.signingkey <key-id>
git config --global commit.gpgSign true
```
- To check the configured remotes:
```bash
git remote -v
```
- To see commit history:
```bash
# Those options only add Styling,
git log --oneline --graph --all --decorate
# Plain Text Log,
git log
```
- Stage changes before committing:
```bash
git add <file>
git add . # stage all changes
```
---
## Example Workflow
```bash
git clone https://github.com/user/repo.git
cd repo
git checkout -b feature-branch
# make changes
git add .
git commit -S -m "Add new feature"
git pull --rebase origin main
git push origin feature-branch
```
---