📝

Git Memo

Quick reference for Git commands
Search Commands:
Git Commands:
Basic Operations6 命令
CommandDescriptionUsage
git init
Initialize a new Git repositorygit init [repository-name]
git clone
Clone a remote repository locallygit clone <repository-url>
git add
Add files to the staging areagit add <file> or git add .
git commit
Commit changes in the staging areagit commit -m "commit message"
git status
View repository statusgit status
git log
View commit historygit log [--oneline] [--graph]
Remote Operations3 命令
CommandDescriptionUsage
git push
Push to remote repositorygit push origin [branch-name]
git pull
Pull updates from remote repositorygit pull origin [branch-name]
git remote
Manage remote repositoriesgit remote add origin <url>
Branch Operations3 命令
CommandDescriptionUsage
git branch
View, create or delete branchesgit branch [branch-name]
git checkout
Switch branches or restore filesgit checkout [branch-name] or git checkout -- <file>
git merge
Merge branchesgit merge [branch-name]
Undo Operations2 命令
CommandDescriptionUsage
git reset
Reset commit historygit reset [--soft|--mixed|--hard] [commit]
git revert
Revert specified commitgit revert [commit]
Tag Operations1 命令
CommandDescriptionUsage
git tag
Create, list or delete tagsgit tag [tag-name]
Configuration Operations1 命令
CommandDescriptionUsage
git config
Set Git configurationgit config --global user.name "Your Name"
📖 Usage Guide
1
Search Commands
Use the search box to find specific Git commands
2
Browse Categories
Commands are organized by categories for easy navigation
3
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.