This project already uses Git. Use this guide to track changes safely and consistently.
git status
git branch --show-current
git remote -vStage all tracked and new files:
git add -AStage specific files:
git add .github/workflows/ci.yml README.md tests/test_main.pygit commit -m "feat: add CI fixes and test updates"Use clear commit messages:
feat:new functionalityfix:bug fixdocs:documentation updatestest:test-only updateschore:maintenance updates
git log --oneline --decorate --graph -n 20If remote is already configured:
git pushIf no remote exists yet:
git remote add origin <your-repository-url>
git push -u origin maingit checkout -b feature/ci-improvementsThen commit and push:
git push -u origin feature/ci-improvements- Keep
poetry.locktracked in Git to avoid CI dependency drift. - Pre-commit hooks automatically run lint and tests before each commit.
- Run checks before committing:
poetry run pre-commit run --all-filesOr manually:
poetry run python -m hello_python.codestyle check
poetry run pytest -m "not slow" -q