Professional Git for 72‑hour teams.
Updated: 9 Oct 2025 · sinceai.fi
- Small PRs (≤300 lines), single purpose
- Conventional Commits:
type(scope): summary - No direct commits to
main - Rebase before merge
- Tag releases:
vX.Y.Z
# 1) clone and create a feature branch
git clone <your-repo-url>
cd <repo>
git checkout -b feat/your-change
# 2) code → commit small
git add -p
git commit -m "feat(ui): add signup form"
# 3) sync before PR
git fetch origin && git rebase origin/dev
# 4) push and open PR to 'dev'
git push -u origin feat/your-changePRs are merged with Rebase or Squash (no merge commits).
main— stable, protected, releases onlydev— integration branch- Work in:
feat/*,fix/*,docs/*,chore/*
Types: feat fix docs chore refactor test build ci
Good:
feat(auth): add refresh tokens
fix(api): validate empty payloads
- Single purpose and small
- Conventional commit messages
- CI green; tests/manual steps noted
- No secrets or large binaries
git status
git lg # add alias below
git diff / git diff --staged
git add -p # stage hunks
git restore <file> # discard changes
git revert <sha> # safe undo
git stash push -m "wip" && git stash popgit config --global pull.rebase true
git config --global fetch.prune true
git config --global init.defaultBranch main
git config --global alias.lg "log --oneline --decorate --graph --all"git fetch origin
git rebase origin/dev
# resolve → git add <files> → git rebase --continuegit checkout main && git pull --ff-only
git tag -a v1.0.0 -m "v1.0.0"
git push origin v1.0.0- Rebase: replay your commits on top of another branch for a linear history.
- Squash: combine multiple commits into one.
- Fast-forward: advancing a branch pointer without creating a merge commit.
- Protected branch: branch with enforced rules (no direct pushes, PR checks).
- Git Book — https://git-scm.com/book/en/v2
- Atlassian Git Tutorials — https://www.atlassian.com/git
- Interactive Branching — https://learngitbranching.js.org
- Comparing Workflows — https://www.atlassian.com/git/tutorials/comparing-workflows
MIT (docs and code samples). Brand assets follow organizer guidelines.
Questions? Open an issue or ask your track mentor.
Event: https://sinceai.fi