You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: downloads/github-git-cheat-sheet.md
+25-13Lines changed: 25 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,10 +5,7 @@ byline: Git is the open source distributed version control system that facilitat
5
5
leadingpath: ../
6
6
---
7
7
8
-
# GitHub Git Cheat Sheet
9
-
10
-
Git is the open source distributed version control system that facilitates GitHub activities on your laptop or desktop. This cheat sheet summarizes commonly used Git command line instructions for quick reference.
11
-
8
+
{% capture colOne %}
12
9
## Install Git
13
10
GitHub provides desktop clients that include a graphical user interface for the most common repository actions and an automatically updating command line edition of Git for advanced scenarios.
14
11
@@ -26,7 +23,6 @@ http://git-scm.com
26
23
## Configure tooling
27
24
Configure user information for all local repositories
28
25
29
-
30
26
```$ git config --global user.name "[name]"```
31
27
32
28
Sets the name you want attached to your commit transactions
@@ -50,6 +46,14 @@ Creates a new local repository with the specified name
50
46
51
47
Downloads a project and its entire version history
52
48
49
+
{% endcapture %}
50
+
<divclass="col-md-6">
51
+
{{ colOne | markdownify }}
52
+
</div>
53
+
54
+
55
+
{% capture colTwo %}
56
+
53
57
## Make changes
54
58
Review edits and craft a commit transaction
55
59
@@ -110,8 +114,15 @@ Combines the specified branch’s history into the current branch
110
114
```$ git branch -d [branch-name]```
111
115
112
116
Deletes the specified branch
117
+
{% endcapture %}
118
+
<divclass="col-md-6">
119
+
{{ colTwo | markdownify }}
120
+
</div>
121
+
<divclass="clearfix"></div>
113
122
123
+
---
114
124
125
+
{% capture colThree %}
115
126
## Refactor file names
116
127
Relocate and remove versioned files
117
128
@@ -168,7 +179,12 @@ Lists all stashed changesets
168
179
```$ git stash drop```
169
180
170
181
Discards the most recently stashed changeset
182
+
{% endcapture %}
183
+
<divclass="col-md-6">
184
+
{{ colThree | markdownify }}
185
+
</div>
171
186
187
+
{% capture colFour %}
172
188
## Review history
173
189
Browse and inspect the evolution of project files
174
190
@@ -227,11 +243,7 @@ Uploads all local branch commits to GitHub
227
243
```$ git pull```
228
244
229
245
Downloads bookmark history and incorporates changes
230
-
231
-
---
232
-
233
-
## GitHub Training
234
-
Learn more about using GitHub and Git. Email the Training Team or visit our website for learning event schedules and private class availability.
0 commit comments