QUICK START:CheatsheetsInterviewCompareTopicsHTMLCSSJavaScriptTypeScriptPythonSQLReactNext.jsNode.jsLinux & UbuntuKotlinSwiftC# / .NETJavaGoRustC++DSASystem DesignDevOpsCybersecurityAI / ML
Back to all cheatsheets
🐙

Git Commands Cheatsheet

Git cheat sheet with essential commands: init, clone, add, commit, push, pull, branch, merge, rebase, stash, reset, cherry-pick and more.

1Git Section 1

Git Concept 1.1

Explanation for Git concept 1.1

// example code for git 1.1
const example1_1 = "test";

Git Concept 1.2

Explanation for Git concept 1.2

// example code for git 1.2
const example1_2 = "test";

Git Concept 1.3

Explanation for Git concept 1.3

// example code for git 1.3
const example1_3 = "test";

Git Concept 1.4

Explanation for Git concept 1.4

// example code for git 1.4
const example1_4 = "test";

Git Concept 1.5

Explanation for Git concept 1.5

// example code for git 1.5
const example1_5 = "test";

Git Concept 1.6

Explanation for Git concept 1.6

// example code for git 1.6
const example1_6 = "test";

Git Concept 1.7

Explanation for Git concept 1.7

// example code for git 1.7
const example1_7 = "test";

Git Concept 1.8

Explanation for Git concept 1.8

// example code for git 1.8
const example1_8 = "test";

2Git Section 2

Git Concept 2.1

Explanation for Git concept 2.1

// example code for git 2.1
const example2_1 = "test";

Git Concept 2.2

Explanation for Git concept 2.2

// example code for git 2.2
const example2_2 = "test";

Git Concept 2.3

Explanation for Git concept 2.3

// example code for git 2.3
const example2_3 = "test";

Git Concept 2.4

Explanation for Git concept 2.4

// example code for git 2.4
const example2_4 = "test";

Git Concept 2.5

Explanation for Git concept 2.5

// example code for git 2.5
const example2_5 = "test";

Git Concept 2.6

Explanation for Git concept 2.6

// example code for git 2.6
const example2_6 = "test";

Git Concept 2.7

Explanation for Git concept 2.7

// example code for git 2.7
const example2_7 = "test";

Git Concept 2.8

Explanation for Git concept 2.8

// example code for git 2.8
const example2_8 = "test";

3Git Section 3

Git Concept 3.1

Explanation for Git concept 3.1

// example code for git 3.1
const example3_1 = "test";

Git Concept 3.2

Explanation for Git concept 3.2

// example code for git 3.2
const example3_2 = "test";

Git Concept 3.3

Explanation for Git concept 3.3

// example code for git 3.3
const example3_3 = "test";

Git Concept 3.4

Explanation for Git concept 3.4

// example code for git 3.4
const example3_4 = "test";

Git Concept 3.5

Explanation for Git concept 3.5

// example code for git 3.5
const example3_5 = "test";

Git Concept 3.6

Explanation for Git concept 3.6

// example code for git 3.6
const example3_6 = "test";

Git Concept 3.7

Explanation for Git concept 3.7

// example code for git 3.7
const example3_7 = "test";

Git Concept 3.8

Explanation for Git concept 3.8

// example code for git 3.8
const example3_8 = "test";

4Git Section 4

Git Concept 4.1

Explanation for Git concept 4.1

// example code for git 4.1
const example4_1 = "test";

Git Concept 4.2

Explanation for Git concept 4.2

// example code for git 4.2
const example4_2 = "test";

Git Concept 4.3

Explanation for Git concept 4.3

// example code for git 4.3
const example4_3 = "test";

Git Concept 4.4

Explanation for Git concept 4.4

// example code for git 4.4
const example4_4 = "test";

Git Concept 4.5

Explanation for Git concept 4.5

// example code for git 4.5
const example4_5 = "test";

Git Concept 4.6

Explanation for Git concept 4.6

// example code for git 4.6
const example4_6 = "test";

Git Concept 4.7

Explanation for Git concept 4.7

// example code for git 4.7
const example4_7 = "test";

Git Concept 4.8

Explanation for Git concept 4.8

// example code for git 4.8
const example4_8 = "test";

5Git Section 5

Git Concept 5.1

Explanation for Git concept 5.1

// example code for git 5.1
const example5_1 = "test";

Git Concept 5.2

Explanation for Git concept 5.2

// example code for git 5.2
const example5_2 = "test";

Git Concept 5.3

Explanation for Git concept 5.3

// example code for git 5.3
const example5_3 = "test";

Git Concept 5.4

Explanation for Git concept 5.4

// example code for git 5.4
const example5_4 = "test";

Git Concept 5.5

Explanation for Git concept 5.5

// example code for git 5.5
const example5_5 = "test";

Git Concept 5.6

Explanation for Git concept 5.6

// example code for git 5.6
const example5_6 = "test";

Git Concept 5.7

Explanation for Git concept 5.7

// example code for git 5.7
const example5_7 = "test";

Git Concept 5.8

Explanation for Git concept 5.8

// example code for git 5.8
const example5_8 = "test";

6Git Section 6

Git Concept 6.1

Explanation for Git concept 6.1

// example code for git 6.1
const example6_1 = "test";

Git Concept 6.2

Explanation for Git concept 6.2

// example code for git 6.2
const example6_2 = "test";

Git Concept 6.3

Explanation for Git concept 6.3

// example code for git 6.3
const example6_3 = "test";

Git Concept 6.4

Explanation for Git concept 6.4

// example code for git 6.4
const example6_4 = "test";

Git Concept 6.5

Explanation for Git concept 6.5

// example code for git 6.5
const example6_5 = "test";

Git Concept 6.6

Explanation for Git concept 6.6

// example code for git 6.6
const example6_6 = "test";

Git Concept 6.7

Explanation for Git concept 6.7

// example code for git 6.7
const example6_7 = "test";

Git Concept 6.8

Explanation for Git concept 6.8

// example code for git 6.8
const example6_8 = "test";