Your Git workflow follows the work, not the job title. You don’t need to settle the title debate to use this page. Engineers tend to own system-level code: build, CI, shared libraries. Developers tend to build features on top.
Titles overlap and vary by company. If yours says Engineer but you ship features, use the feature-level practices below. Match your branching, review, hooks, and permissions to the work in front of you.
Key Takeaways
- Feature branches should live under two days before merging to main.
- System-level changes ship in small slices behind feature flags, not on long branches.
- CODEOWNERS routes shared-code changes to the people who designed them.
- Pre-commit hooks suit fast feature checks, and pre-push hooks suit slower system checks.
What does the engineer vs developer difference look like inside a repository?
The difference shows up as scope. System-level commits touch many directories. Feature-level commits stay in one module. Your history shows which work you do most, whatever your badge says.
Employers do treat the titles differently on paper. A South Dakota state classification spec (2023) grades Software Engineer at IT 6 and FLSA-exempt, and System Developer at IT 4 and non-exempt. That’s one state’s system. Private companies use the words inconsistently, so read the duties, not the title.
Check your own pattern. Run these on your repo (tested on Git 2.43, Linux):
git shortlog -s -- src/payments/
git log --stat --author="you" --since="3 months ago"
git log --merges --first-parent --since='3 months ago' --format='%h %s'
If most merges touch build config, CI, schemas, or shared libraries, your work is system-level. Otherwise it’s feature-level. Many people do both in one week.
How should branch lifetime and merge strategy change with the kind of work?
Feature work wants short branches, rebased onto main and squash merged. System work wants small slices behind feature flags. Both aim at the same thing: never let a branch drift far from main.
A squash merge collapses a branch into one commit on main. A feature flag is a runtime switch that hides unfinished code. Trunk-based development means everyone integrates into main in small, frequent steps.
git switch -c feat/login-copy
git fetch origin && git rebase origin/main
git switch main && git merge --squash feat/login-copy
For a cross-service change, ship the schema first. Then ship the code behind a flag, then flip the flag. Each step is its own atomic commit, meaning one reversible change with the rollback noted in the message body.
Audit branch age with this:
git for-each-ref --sort=committerdate refs/heads --format='%(refname:short) %(committerdate:relative)'
Anything older than a few days on shared code is a warning. A long-lived branch that diverged is the classic failure. If someone force pushes over main, recover with git reflog and git revert. Force pushes rewrite history, so avoid them on shared branches.
Which permissions, reviews, and hooks fit each kind of work?
Shared system paths need named reviewers and stricter checks. Feature paths need speed. Route review by path, not by title, and give each person only the write access their work requires.
CODEOWNERS assigns required reviewers to file paths. Branch protection blocks direct pushes to main and enforces reviews and status checks. Put an entry like this in .github/CODEOWNERS:
/ci/ @platform-team
/schemas/ @platform-team
/src/checkout/ @checkout-team
Git hooks run scripts at points like commit and push. Use pre-commit for lint, format, and fast unit tests. Use pre-push for build and integration checks:
#!/bin/sh
# .git/hooks/pre-push
make build && make integration-test || exit 1
Hooks are local and skippable, so CI must repeat them. In large repos, sparse checkout limits your working tree to chosen directories. See Git in large teams for scaling advice.
Engineer vs developer Git workflow at a glance
These are tendencies, not rules.
| Criterion | Feature-level work | System-level work |
|---|---|---|
| Branch lifetime | Under 2 days | Flagged slices, merged daily |
| Modules per commit | One | Many |
| CODEOWNERS review | Feature team | Platform owners required |
| Hook time | Seconds | Minutes, at pre-push |
| Main conflicts (30 days) | Rare | Frequent without slicing |
How to choose your Git setup
Decide per task, not per title. Use these criteria:
- Average branch lifetime in days (under 2 for feature work, flagged slices for longer system changes)
- Modules or directories touched per commit (one or many)
- Whether the path is shared code needing a CODEOWNERS reviewer
- Seconds or minutes the hook adds per commit
- Merge conflicts on main in the last 30 days for those paths
- If you change one module and merge within two days, choose rebase plus squash merge because history stays clean.
- If you change shared build or schema code, choose flagged small slices and CODEOWNERS review because one long branch will collide.
- If hooks add minutes per commit, choose pre-push for slow checks because commits stay fast.
- If conflicts on main keep recurring, choose shorter branches because divergence causes them.
Start today: run the for-each-ref audit, then add one CODEOWNERS entry. Recheck branch age after two weeks. Related reading: Git branching strategies.
Frequently Asked Questions
How do I set up a CODEOWNERS file for a monorepo?
Create .github/CODEOWNERS and list one path pattern per line with its owning team. Put system paths like CI and schemas under platform owners, and each feature directory under its team. Then enable “require review from code owners” in branch protection. The last matching pattern wins.
Should I squash or rebase merge for shared framework changes?
Prefer rebase merge when each commit is a reversible, atomic step. It keeps that history for bisecting and reverting. Squash when a branch holds noisy work-in-progress commits. Pick one rule per repository and write it in CONTRIBUTING.md.
How do I stop pre-commit hooks from slowing down every commit?
Run only lint, format, and fast unit tests on staged files at pre-commit. Move build and integration checks to pre-push, and repeat everything in CI. Hooks that add more than a few seconds per commit push people toward --no-verify.
How do I split a large refactor into mergeable slices?
Make each slice one reversible change. Add the new interface, migrate callers one directory at a time behind a flag, then delete the old path. Merge each slice to main within two days. Small slices keep main conflicts low.

Heather Gram is a seasoned software engineer and an authoritative voice in the world of version control systems, with a particular focus on Git. With over a decade of experience in managing large-scale software development projects, Heather has become a go-to expert for advanced Git techniques. Her journey in the tech industry began with a degree in Computer Science, followed by roles in various high-tech companies where she honed her skills in code management and team collaboration.
