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: intermediate/beta.md
+60-31Lines changed: 60 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,17 @@ layout: curriculum-beta
3
3
title: GitHub Intermediate
4
4
description: Leveraging Git and GitHub from the command line
5
5
---
6
-
7
6
8
7
This curriculum will be your companion to the GitHub Intermediate class taught by the GitHub Training Team and other educational groups. In this course, you'll learn how to extensively leverage Git and GitHub from the command line.
9
8
10
9

11
10
11
+
{% capture slide %}
12
12
### Git Configuration
13
+
{% endcapture %}
14
+
{% include slide-section %}
15
+
16
+
13
17
Git is configured through name-value pairs saved in an [INI file format](http://en.wikipedia.org/wiki/INI_file). The name-value pairs can be read and written through the `git config` command.
14
18
15
19
Git's configuration is saved in one of three plain text files and one of three levels and is easily editable with a text editor and portable to other machines by copying the configuration files.
@@ -114,8 +118,11 @@ $ git config --[scope] color.ui auto
114
118
4. If on Mac, set your line ending behavior to `core.autocrlf input`
115
119
5. List out all your remaining Git configuration values.
116
120
117
-
121
+
{% capture slide %}
118
122
### Start a repository
123
+
{% endcapture %}
124
+
{% include slide-section %}
125
+
119
126
Git provides an easy way to get started versioning any prototype, prose or project with a terse command line recipe.
120
127
121
128
Initialize a repository and create a top level project directory:
Git advocates precision in each commit's contents and commit message. This is facilitated by easy reviewing of in-flight changes prior to describing them and making them permanent.
Git is capable of working with 0 to N remotes. 0 means the local repo only knows about the local file system, 1 represents a more traditional centralized model, and 1+N is an example of the "distributed" multi-mastered facet of a DVCS.
313
328
@@ -323,11 +338,13 @@ Additional remotes (bookmarks) are added as a name-URL-value pair. The default n
0 commit comments