# git-tips

> trollface:Git的奇技淫巧

- Type: skill
- Field: Learning & Education
- Repository: https://github.com/521xueweihan/git-tips
- GitHub stars: 15862
- Licence: none stated
- Language: not stated
- Last push: 2022-12-08
- Page: https://imutechz.in/agents/git-tips

## What it is
A Chinese-language collection of commonly used Git commands and small tricks, forked from the git-tips/tips project. It is aimed at people who already know basic Git and want a quick reference for specific tasks, such as recovering deleted files, managing branches, tags and stashes, or rewriting commits. Each entry lists a short description and the exact command, and the page can be searched with Ctrl/Command+f.

## Features
- Command reference organised by task, with a table of contents
- Covers branches, tags, stashes, diffs, remotes and commit history
- Includes commands for undoing changes and recovering deleted files
- Shows how to configure http, socks and ssh proxies
- Explains core concepts such as working tree, staging area and commit-id
- Commands tested under git version 2.7.4 (Apple Git-66)

## Best for
- Looking up a specific Git command quickly
- Learning tricks beyond basic commit and push
- Recovering files or commits after a mistake
- Setting up Git aliases and proxy configuration

## Pros
- Every entry pairs a short explanation with a concrete command
- Searchable in-page with Ctrl/Command+f
- States the Git version the commands were tested on

## Cons
- Written in Chinese
- Commands were tested only on git version 2.7.4 (Apple Git-66)
- Warns that commands should be tested before use in a work environment

## Usage
```
git fetch --all && git reset --hard origin/master
```

Tags: git, command-reference, cheatsheet, version-control, chinese, learning, tips
