Skip to content

git-tips

A long list of commonly used git commands and tricks, as a reference collection.git-tips/tips

Stars
21.7k
Forks
1.7k
Licence
MIT
Language
JavaScript
Last update
6 days ago
Type
Learning resource

What it is

git-tips is a collection of git command tips and tricks, organized by topic such as basic operations, branching, and log and history. Each entry shows a task you might want to do with git and the command that does it. The README says the commands were tested on git version 2.7.4 and points to a GitBook version of the documentation. It also links to a small companion CLI called git-tip for using the tips from the terminal.

  • Look up how to reword the previous commit message or amend the author
  • Find how to stage part of a changed file instead of the whole file
  • Search for a command to list branches already merged into master
  • Find how to clone only a single branch or a shallow copy of a repository

Great for

  • Developers who already use git and want quick recipes for everyday tasks
  • Students learning git who want to see many common commands in one place
  • People who want to look up how to undo, branch, or inspect history without reading the full manual
  • Contributors who want to add their own tips to a shared list

Not ideal for

  • Complete beginners who need a step-by-step introduction to git concepts, since entries are short command snippets rather than explanations
  • People looking for software to install, because this is a reference document, not a program
  • Anyone needing guidance for recent git versions, since the README says commands were tested on git 2.7.4
Step-by-step guide: how to use git-tipsInstall, first run, examples, tips and FAQs

How to get it

  1. 1

    See the README

    You'll need: git

    Clone the repository to read it locally

    git clone https://github.com/git-tips/tips
  2. 2

    Run it

    • Open the README or the GitBook documentation at https://git-tips.github.io/tips/
    • Browse the table of contents to find a topic such as Basic Operations or Branching
    • Open an entry and copy the command, then test it in a safe repository first
  3. 3

    Get the most out of it

    • Use the GitBook version for an interactive reading experience
    • Try the git-tip CLI, which the README links to, to use these tips from the terminal
    • Check the contributing.md file if you want to add your own tips

Downloads

Strengths

  • Covers a wide range of common git tasks in one searchable list
  • Entries are short and grouped by topic, which makes lookup quick
  • Available in many languages through linked translated versions

Trade-offs

  • The README states commands were tested only on git 2.7.4, so newer versions may differ
  • Being a list of snippets, it gives little explanation of why each command works
  • The README is truncated here, so the full set of entries could not be fully reviewed

How it compares

ProjectStarsTypeLevelUpdatedBest for
tips (this)21.7kLearning resourcebeginner6 days agoDevelopers who already use git and want quick recipes for everyday tasks
introduction-to-github10.8kLearning resourcebeginner5 months agoPeople who have never used GitHub before
github-cheat-sheet60.1kCurated listbeginner2.6 years agoDevelopers who already use Git and GitHub daily and want to discover lesser-known features
lazygit83.6kCLIbeginner6 days agoDevelopers who already use git from the command line and want a faster overview of their repository
gitea58.8kAppintermediate4 days agoTeams that want to host their own code instead of using a public cloud service
bruno48kAppbeginner4 days agoDevelopers who want to test HTTP or GraphQL APIs without an account or cloud sync

Stats synced from GitHub. The assessment above was drafted with AI from the project's README on 2026-10-29 and may miss recent changes — check the README before relying on a command. MIT licence: free to use, modify and distribute, including commercially, as long as you keep the copyright notice.