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