Skip to content

paulbright/Git-Commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Commands

This repository contains a list of GIT commands and explanations of how they work. The scenario section describes how the combination of git commands can be used in different scenarios. The reference section list several examples on how a single git command can be used in a number of different ways.

Overview

This page came to life after I decided to learn git in a lot more details. I used numerous sources like books, tutorials and online courses and made notes as I started to learn git. The reason for publishing yet another repository of git commands is because of the Feynman Technique. According to Richard Feynman, you learn by teaching somebody else a topic in simple terms.

Cheatsheet

Scenarios

Git Installation

The Git Installation and Setup scenarios are performed only once as part of the initial setup of git on a specific computer.

Create Git Repository

There are two distinct ways in Git to create a local repository. The first is to create a new local repository from scratch and the second is to download/clone an existing repository.

Basic Workflow Usage

The following scenarios describe how a combination of git commands can be used to perform a specific task.

  • Basic Git Commands (Add, Status, Commit, Log)
  • Remote Repositories (Remote, Push, Pull)
  • Housekeeping (Rename, Move, Delete)
  • Branching
  • History
  • Ignoring Unwanted Files

Reference

The git commands can be classified into different sections.

Setup & Config

  • git
  • git config
  • git help

Create & Get Repositories

Basic Snapshotting

Branching & Merging

Sharing & Updating Projects

Conclusion

This page contains the different scenarios in which git is used in a day to day fashion as part of my work and also a reference to some of those commands. As part of the reference, each command list the synopsis and also a number of examples on how to use the git command.

Not all the options options and permutations are documented on this page, only the most used commands. For more information about the git commands, the official documentation can be found at the following link:

About

This repository contains a list of GIT commands and explanations of how they work.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors