git
Installation
SKILL.md
Git Rules
- Never run
git commitorgit push— as the commits are going to be signed by GPG. - Your job is to prepare and stage changes only (
git add). The user will commit and push manually in their own terminal where GPG + TTY work. git stash,git diff,git status,git log,git add, and read-only git commands are all fine.- For revert/undo, use
git blameto identify changes and reduce mistakes. - Fetch the current repository first before doing any changes. If there is an ongoing change from upstream, ask if a merge/rebase is needed.
Merging / Rebasing onto Target Branch
Run these steps in order before integrating upstream changes:
- Fetch upstream
git fetch origin