TanDD Blog's – Trang 3

Blog của TanDD – ghi chép về lập trình web, database (MySQL), DevOps và các dự án open-source.

Git - Protocols, SSH and Running a Git Server

The protocols Git uses to transfer data (local, HTTP, SSH and git), how to set up SSH keys, how to host bare repositories on your own server with SSH, git daemon, Smart HTTP and GitWeb, and how self-hosting compares with GitHub and GitLab.

Git - Patches, Workflows and Collaboration

How teams share work with Git: patches with format-patch and am, centralized and integration-manager workflows, GitHub Flow, Git Flow and trunk-based development, and practical habits for contributing to and maintaining a project.

Git - Stash, Tags and Aliases

Three everyday helpers: git stash to park unfinished work, lightweight and annotated tags to mark releases and push them, and Git aliases to shorten the commands you type most.

Git - Undoing Changes with Restore, Reset, Revert and Amend

Every common way to undo something in Git: discard edits with git restore, unstage, fix the last commit with --amend, move branches with git reset (soft, mixed, hard), undo published commits with git revert, remove and move files, and recover lost work with the reflog.

Git - Rebase, Squash and Cherry-Pick

How git rebase replays commits onto a new base, when to rebase and when to merge, cleaning up history with interactive rebase (squash, fixup, reword, reorder), and copying single commits with git cherry-pick.

Git - Remotes, Fetch, Pull and Push

How Git talks to other repositories: remotes and origin, remote-tracking branches, upstream branches, and what git fetch, git pull and git push really do. Includes force-pushing safely and keeping branches in sync.

Git - Merging and Resolving Conflicts

How git merge combines branches, the difference between fast-forward and three-way merges, why conflicts happen and how to resolve them step by step, plus tools and settings that make conflicts less painful.

Git - Branches and HEAD

What a Git branch really is, how HEAD tracks your position, and how to create, switch, list, rename and delete branches. Also covers detached HEAD and the revision names such as HEAD~2 used throughout the series.

Git - Commits, Diffs and Reading History

What a commit contains, how to write commit messages people can use, how to compare versions with git diff, and how to read and search history with git log, git show and git blame.

Git - Repositories, the Three Areas and the File Lifecycle

How to create or clone a repository, what lives inside the .git directory, and how files move between the working directory, the staging area and the repository. Covers git status, git add and .gitignore.