📝
Git Memo
Quick reference for Git commandsA comprehensive reference tool for Git commands. Search and copy Git commands with their descriptions, usage examples, and categories.
Search Commands:
Git Commands:
Basic Operations6 命令
Command | Description | Usage |
---|---|---|
git init | Initialize a new Git repository | git init [repository-name] |
git clone | Clone a remote repository locally | git clone <repository-url> |
git add | Add files to the staging area | git add <file> or git add . |
git commit | Commit changes in the staging area | git commit -m "commit message" |
git status | View repository status | git status |
git log | View commit history | git log [--oneline] [--graph] |
Remote Operations3 命令
Command | Description | Usage |
---|---|---|
git push | Push to remote repository | git push origin [branch-name] |
git pull | Pull updates from remote repository | git pull origin [branch-name] |
git remote | Manage remote repositories | git remote add origin <url> |
Branch Operations3 命令
Command | Description | Usage |
---|---|---|
git branch | View, create or delete branches | git branch [branch-name] |
git checkout | Switch branches or restore files | git checkout [branch-name] or git checkout -- <file> |
git merge | Merge branches | git merge [branch-name] |
Undo Operations2 命令
Command | Description | Usage |
---|---|---|
git reset | Reset commit history | git reset [--soft|--mixed|--hard] [commit] |
git revert | Revert specified commit | git revert [commit] |
Tag Operations1 命令
Command | Description | Usage |
---|---|---|
git tag | Create, list or delete tags | git tag [tag-name] |
Configuration Operations1 命令
Command | Description | Usage |
---|---|---|
git config | Set Git configuration | git config --global user.name "Your Name" |
📖 Usage Guide
Search Commands
Use the search box to find specific Git commands
Browse Categories
Commands are organized by categories for easy navigation
Copy & Use
Click copy button to use commands in your terminal
✨ Features
📚
Comprehensive ReferenceProfessional tool with advanced functionality
🔍
Smart SearchReal-time processing with instant results
📋
Quick CopyOne-click copy functionality for easy sharing
📖
Organized CategoriesLocal processing ensuring complete privacy
🔬Technical Introduction
Core ConceptGit is a distributed version control system. Commands are organized into categories: basic operations, branch management, remote operations, undo operations, tagging, and configuration.
Git WorkflowThe typical Git workflow involves creating branches, making commits, and merging changes back to the main branch.
Best PracticesAlways check git status before committing. Use descriptive commit messages. Create feature branches for new work. Regularly sync with remote repositories using pull and push.