Blog
In-depth articles on AI agents, LLM engineering, servers, Python and software development.
In Git, `fetch` and `pull` are commonly used commands to pull remote code. The core difference lies in whether they automatically merge, provided that you understand "remote tracking branches" (mirror
The purpose of pushing code to a remote repository is to enable team collaboration, code backup, or hosting on remote platforms (such as GitHub/GitLab). The core processes and key points are as follow
In addition to .gitignore, Git provides four flexible methods to control file ignoring: 1. **Local Exclusive Ignoring**: `.git/info/exclude` applies rules only to the current repository and is not
In Git, each commit generates a unique 40-character hexadecimal string called the commit hash, which serves as the "ID number" for the commit. It is generated by hashing the commit content (files, mes
Git specifications can address team collaboration chaos and enhance efficiency. Branch naming is categorized: main/development branches are fixed; feature branches follow the format `feature/[ID]-[Fea
Git log is a core tool for viewing commit history, enabling tracking of code changes, issue location, or version rollbacks. The basic command `git log` by default displays full commit records, includi
Git submodules are used to manage independent code repositories within the main project, avoiding the hassle of manual copying and updates. They are independent sub-repositories within the main projec
This article introduces methods for renaming Git branches, with the core being handling local branches first and then safely updating remote branches. Renaming a local branch is straightforward: first
The three core areas of Git (working directory, staging area, and local repository) have clear divisions of labor and work together to complete version control. **Working Directory** is the directo
In Git, "Reset" and "Undo" have different principles and impacts: Reset directly rewrites history, suitable for local, unpushed "draft" scenarios; Undo preserves history through new commits or recover