From 656fae3f82b051559b09911e315f708eb72d950b Mon Sep 17 00:00:00 2001 From: Noah Pombas Date: Fri, 5 Dec 2025 09:57:25 +0100 Subject: [PATCH] Updates git log Guide --- docs/guides/git.md | 30 +++++++----------------------- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/docs/guides/git.md b/docs/guides/git.md index a046825..935d31b 100644 --- a/docs/guides/git.md +++ b/docs/guides/git.md @@ -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 -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 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 -``` +--- \ No newline at end of file