рдореБрдЦреНрдп рдордЬрдХреБрд░рд╛рдХрдбреЗ рдЬрд╛
JobCannon
рд╕рд░реНрд╡ рдХреМрд╢рд▓реНрдпреЗ

Git & Version Control

Track code changes, collaborate with teams, manage branches

тмв рд╢реНрд░реЗрдгреА 3рддрд╛рдВрддреНрд░рд┐рдХ
+$10k-
рдкрдЧрд╛рд░рд╛рд╡рд░реАрд▓ рдкрд░рд┐рдгрд╛рдо
3 рдорд╣рд┐рдиреЗ
рд╢рд┐рдХрдгреНрдпрд╛рд╕ рд▓рд╛рдЧрдгрд╛рд░рд╛ рд╡реЗрд│
рдордзреНрдпрдо
рдХрд╛рдард┐рдгреНрдп
12
рдХрд░рд┐рдЕрд░реНрд╕
рдПрдХрд╛ рджреГрд╖реНрдЯрд┐рдХреНрд╖реЗрдкрд╛рдд

Git is the universal VCS for code collaboration. Career path: L1 (basic commits, push/pull, branches, pull requests) in month 1 тЖТ L2 (rebase, cherry-pick, merge conflict resolution, git workflows, squashing) by month 2 тЖТ L3 (Git hooks, submodules, monorepo strategies, Git internals, release management, trunk-based development) by month 3. Every developer uses Git daily; proficiency adds $10kтАУ$25k across all engineering roles. Mastery = seamless code integration, zero merge disasters, and team velocity.

Git & Version Control рдореНрд╣рдгрдЬреЗ рдХрд╛рдп

Git is the version control standard. Essential for ALL engineering roles, adds $10k-$25k to entry-level salaries. Boost: +$10k-$25k | Learning: Easy-Medium

ЁЯФз рд╕рд╛рдзрдиреЗ рдЖрдгрд┐ рдкрд░рд┐рд╕рдВрд╕реНрдерд╛
Git CLIGitHubGitLabBitbucketGiteaSourcegraphGitKrakenSublime MergelazygitGitHub Desktopgh CLIhub CLIpre-commitconventional-commitsHusky

ЁЯТ░ рдкреНрд░рджреЗрд╢рд╛рдиреБрд╕рд╛рд░ рдкрдЧрд╛рд░

рдкреНрд░рджреЗрд╢рдЬреНрдпреБрдирд┐рдпрд░рдордзреНрдпрдорд╕реАрдирд┐рдпрд░
USA$80k$120k$160k
UK┬г50k┬г75k┬г95k
EUтВм55kтВм80kтВм105k

ЁЯОУ рдкреНрд░рдорд╛рдгрдкрддреНрд░реЗ

тЪЦ рдпрд╛рдВрдЪреНрдпрд╛рд╢реА рддреБрд▓рдирд╛ рдХрд░рд╛

тЭУ FAQ

When should I merge vs rebase?
Merge creates a merge commit (preserves history, shows collaboration points). Rebase replays commits on top of another branch (linear history, cleaner logs). Rule: rebase for local branches before pushing (interactive rebase cleans up); merge for integrating shared branches. Trunk-based dev uses rebase for feature branches тЖТ main, no merge commits. Never rebase after pushing to shared branches, causes conflicts for teammates.
How do I recover deleted commits or lost work?
Git reflog saves every HEAD movement for 90 days. Run `git reflog` to see all commits, find the lost SHA, then `git reset --hard <sha>` or `git checkout <sha>` to recover. For deleted branches, `git fsck --lost-found` finds dangling commits. Pro tip: always tag releases and important commits so they survive garbage collection.
What's the difference between monorepo and polyrepo?
Monorepo = one Git repo for many services (shared history, atomic commits across projects, easier refactoring; tools: Nx, Turborepo, Bazel). Polyrepo = separate repos per service (independent CI/CD, easier access control, slower refactoring across projects). Monorepo wins for startups/cohesive teams; polyrepo for large companies/security boundaries. Git handles monorepos fine; tooling (workspaces, CI filters) is the challenge.
How do I handle merge conflicts efficiently?
Conflicts arise when both branches modify the same line. Use `git status` to see conflicts (marked <<<<<<< ======= >>>>>>>). Tools help: `git mergetool` (opens UI), VS Code's Merge Editor (built-in, interactive), or `git diff --ours/--theirs` to see both versions. Always understand the conflict, not just pick 'ours'. Use `git merge --abort` to bail out. Prevention: rebase frequently, small PRs, communicate with teammates.
Should I use trunk-based development or gitflow?
Trunk-based (main only, short-lived branches): high velocity, low merge pain, suitable for continuous deployment. Gitflow (main + develop + release/hotfix branches): clear separation, structured release cadence, bureaucratic. Pick trunk for startups/fast teams; gitflow for regulated/large orgs with formal releases. Most successful tech companies (Google, Meta) use trunk-based.
How do I manage large files and binary assets?
Git is bad at large files (clones are slow, disk bloat). Use Git LFS (Large File Storage) to store pointers instead of actual files. Enable with `git lfs install`, then `git lfs track '*.psd'` etc. For images/videos, consider cloud storage (S3, Cloudinary) + Git-tracked metadata files. Never commit binaries >100MB without LFS; clone times explode.
Can AI help write commit messages?
Yes (2026). Tools like Conventional Commits linters (Husky + commitlint) enforce format automatically. GitHub Copilot can suggest messages; some IDEs (VS Code, JetBrains) integrate AI. Best practice: use `git commit` with a template (`commit.template` in .gitconfig) that prompts for type/scope/subject/body. Conventional format (`feat: add login`, `fix: typo in README`) is machine-readable for changelog generation + semantic versioning.

рд╣реЗ рдХреМрд╢рд▓реНрдп рддреБрдордЪреНрдпрд╛рд╕рд╛рдареА рдпреЛрдЧреНрдп рдЖрд╣реЗ рдХрд╛, рдпрд╛рдЪреА рдЦрд╛рддреНрд░реА рдирд╛рд╣реА?

рдХрд░рд┐рдЕрд░ рдореЕрдЪ рдХрд░реВрди рдкрд╛рд╣рд╛ тАФ рдЖрдореНрд╣реА рдпреЛрдЧреНрдп рдорд╛рд░реНрдЧ рд╕реБрдЪрд╡реВ.

рдорд╛рдЭреНрдпрд╛рд╕рд╛рдареА рд╕рд░реНрд╡реЛрддреНрддрдо рдХреМрд╢рд▓реНрдпреЗ рд╢реЛрдзрд╛ тЖТ

рддреБрдордЪрд╛ рдЖрджрд░реНрд╢ рдХрд░рд┐рдЕрд░ рдорд╛рд░реНрдЧ рд╢реЛрдзрд╛

реи,релреирез рдХрд░рд┐рдЕрд░рдордзреНрдпреЗ рдХреМрд╢рд▓реНрдпрд╛рдВрд╡рд░ рдЖрдзрд╛рд░рд┐рдд рдЬреБрд│рдгреА. рдореЛрдлрдд, ~3 рдорд┐рдирд┐рдЯреЗ.

рдХрд░рд┐рдЕрд░ рдореЕрдЪ рдХрд░реВрди рдкрд╛рд╣рд╛ тАФ рдореЛрдлрдд тЖТ