gitmyhub

git-cheat-sheet

★ 7.4k updated 3mo ago

:octocat: git and git flow cheat sheet

A multilingual quick-reference guide covering the most commonly used Git commands, organized into sections from initial setup through branching, merging, and the Git Flow workflow.

setup: easycomplexity 1/5

This repository is a reference guide that organizes the most commonly used Git commands into one document. Git is a version control tool that developers use to track changes in code, collaborate with others, and manage different versions of a project. The cheat sheet is aimed at anyone who works with Git and wants a quick way to look up a command without searching through the full documentation.

The content is divided into sections covering the main things you do with Git: initial setup and configuration, creating or cloning a repository, staging and committing changes, viewing history, searching through commits, managing branches and tags, fetching and pushing code to remote servers, merging and rebasing, and undoing changes. Each entry shows the exact command to type, with a short label describing what it does. Some entries include brief warnings, such as a note not to amend commits that have already been shared with others.

The guide also covers Git Flow, a structured branching strategy that some teams use to organize their work around releases. Git Flow defines specific branch names and rules for features, releases, and hotfixes, and the cheat sheet lists the commands that go with that workflow.

The README is available in multiple languages, including Chinese, Korean, Bengali, Greek, Portuguese, and others, with links to translated versions in the repository. Contributions are welcome: the project accepts fixes for grammar errors, additions of new commands, new translations, and improvements to existing explanations.

Where it fits