Loading…
Loading…
Git
A complete Git course for students and working developers: commits, diffs and history, branching, merging and rebasing, remotes and teamwork, undoing and recovery, investigation tools, configuration, releases, large projects, internals and graded exercises. 56 articles with practice quizzes.
Move a project to Git from another version control system: full history or a fresh start, mapping authors, converting Subversion with git svn or svn-all-fast-export, TFVC with git-tfs, Mercurial with hg-fast-export, the fast-import format behind them, verifying the result, and switching the team.
kvi5hnuCode Sprout team member9 minHow Git keeps repositories small and fast: loose objects and packfiles with delta compression, pack indexes, git gc and when unreachable objects are really deleted, fsck, SHA-256 repositories, the reftable ref format, and what Git 3.0 changes by default.
kvi5hnuCode Sprout team member8 minHow names point into the object database: branches, tags and remote-tracking refs as files holding IDs, HEAD as a symbolic ref, detached HEAD, packed-refs, special refs like ORIG_HEAD and FETCH_HEAD, and the plumbing commands that build a commit by hand, from hash-object to update-ref.
kvi5hnuCode Sprout team member7 minWhat Git really stores: a content-addressed database of four object types. How blob IDs are computed, how trees record names and modes, what a commit object contains, annotated tag objects, why identical files are stored once, and how to inspect any object with cat-file, ls-tree and hash-object.
kvi5hnuCode Sprout team member7 minRewrite a whole repository's history safely: rotating leaked secrets first, git filter-repo for removing files, replacing text, fixing authors and extracting folders, rebase --exec for recent commits, the fast-export pipeline underneath, and cleaning up servers and clones.
kvi5hnuCode Sprout team member8 minPackage a repository, or just new commits, into a single file with git bundle: creating full and incremental bundles, verifying them and their prerequisites, cloning and fetching from a bundle, using bundles for offline transfer and backups, and bundle URIs that speed up clones.
kvi5hnuCode Sprout team member6 minShare changes as patch files: plain diffs and git apply, commit-preserving patches with format-patch and git am, cover letters and versioned series, handling patches that don't apply with --3way, emailing patches with send-email, and comparing revised series with range-diff.
kvi5hnuCode Sprout team member7 minKeep Git fast in big repositories and monorepos: sparse checkout in cone mode, partial clones that fetch files on demand, git backfill, background maintenance with commit-graphs and geometric repacking, the file system monitor and untracked cache, and Scalar, which sets it all up.
kvi5hnuCode Sprout team member7 minWhy large binary files make repositories slow and why deleting them doesn't help, finding the biggest files in history, storing them with Git LFS (install, track, pointer files, locking, migrate, fetch settings), hosting limits, and alternatives such as artifact storage.
kvi5hnuCode Sprout team member7 minInclude another repository's files and history inside a folder of yours, with nothing extra for people who clone: git subtree add, pull, push and split, squashed or full history, the subtree merge underneath it in plain Git, and how subtrees compare with submodules.
kvi5hnuCode Sprout team member6 minInclude another repository at a fixed commit with git submodule: adding one, what .gitmodules and the gitlink record, cloning with --recurse-submodules, updating to new versions, working inside a submodule without losing commits, pushing safely, changing URLs, and removing a submodule cleanly.
kvi5hnuCode Sprout team member7 minWork on several branches at the same time with git worktree: adding worktrees for a hotfix or a review, what's shared and what's separate, the one-branch-one-worktree rule, listing, locking, moving, removing and pruning, relative paths, and the bare-repository layout.
kvi5hnuCode Sprout team member6 minProve that commits and tags really come from you: why author names prove nothing, signing with SSH keys or GPG, signing everything by default, verifying with log --show-signature, verify-commit and allowed signers files, Verified badges, and signing versus sign-off.
kvi5hnuCode Sprout team member7 minMark releases with Git tags: lightweight versus annotated tags, creating, listing, sorting and filtering them, tagging older commits, pushing and deleting tags, why moving a tag is a problem, version names from git describe, and release files from git archive.
kvi5hnuCode Sprout team member6 minMake Git easier to use day to day: tab completion and a branch-aware shell prompt for Bash and zsh, graphical and terminal clients from gitk to lazygit, editor integration, and configuring external diff and merge tools with difftool, mergetool and custom commands.
kvi5hnuCode Sprout team member6 minRun checks automatically at key moments with Git hooks: how hook scripts work, pre-commit, commit-msg and pre-push examples, bypassing with --no-verify, server-side pre-receive hooks, sharing hooks with core.hooksPath and frameworks, and Git 2.54's hooks defined in configuration.
kvi5hnuCode Sprout team member7 minEnd line-ending trouble between Windows, macOS and Linux with .gitattributes: text=auto, eol=lf and crlf, core.autocrlf and why attributes beat it, renormalizing a repository, binary files, diff drivers and textconv, export-ignore, merge strategies per file and checking attributes.
kvi5hnuCode Sprout team member8 minCreate your own Git commands with aliases: simple shortcuts, aliases that combine options, shell aliases with ! and how they handle arguments and folders, functions for complex ones, listing and debugging aliases, and a collection of useful aliases explained one by one.
kvi5hnuCode Sprout team member5 minMaster git config: the file format, levels from system to worktree, reading values with types, defaults and URLs, multi-valued keys, includes and conditional includes by folder, branch or remote URL, one-off settings with -c and environment variables, and a set of recommended defaults.
kvi5hnuCode Sprout team member7 minSearch code with git grep, in the working tree, old revisions and every branch, with context, functions and combined patterns. Summarize contributors with git shortlog, merge identities with .mailmap, and count commits, lines and objects with rev-list, log, git repo and last-modified.
kvi5hnuCode Sprout team member6 min