# Git Sync Check ## Rule Before starting any work on a task (repositories are hosted in Gitea): 1. `git fetch origin` 2. `git log HEAD..@{u} --oneline` 3. Non-empty output: **stop immediately, make no changes**, tell the user the remote has new commits and ask how to proceed (pull, rebase, ignore). 4. Empty output: proceed normally. If offline and fetch is impossible: notify the user before proceeding. Web UI inspection does not replace the local check. ## Gitea Workflow - Create a task branch before changes (`git checkout -b `), push with `git push -u origin `, review via a Gitea **pull request** (the `tea` CLI may be used if configured). - Do not assume GitHub tooling such as `gh`; do not use GitLab terminology such as `merge request`.