An Overview of Git Commands

A high-level overview of my most used git features.

Written by Anthony Ongaro, on 2023-1-20

git

github

Bold is definition, inline code is terminal command related.

Terminology

General terms

Terminal… terms

Getting Started

Initialize a new local repository, stage your files, and start committing them

Branches

Work more effectively with coworkers by creating a branch before making changes to a shared repository. This tracks changes under a ‘branch’ that can then be merged with the main via a pull request

Getting Information

Working with Github

Fixing Things

Fix your messed up commit messages or files forgotten from last commit

Stashing Things

When you are writing code but doesn’t work yet, and you want to save for later without committing your work to the official history

Advanced Git

You can do custom key bindings using aliases

Made with ☀️ in Phoenix, AZ