Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions _episodes/02-getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ we need to configure a few things. The basic elements of a configuration for Git

* your name and email address,
* what your preferred text editor is,
* set the name of your default branch (branches are an important component of Git that we will cover later)
* and that you want to use these settings globally (i.e. for every project).
* the name of your default branch (branches are an important component of Git that we will cover later).

It is possible you may have already set up Git on your computer in the past, so let's start by checking if there are any existing configurations.
First, we will tell Git our user name and email. For this lesson, we will be interacting with [GitHub](https://github.com/), and therefore we want to use the same email address we used when we set up our GitHub account. If you are concerned about privacy, please review [GitHub’s instructions for keeping your email address private](https://help.github.com/articles/keeping-your-email-address-private/).

Open your shell terminal window and type:

Expand Down Expand Up @@ -82,11 +81,20 @@ git config --list

~~~
user.name=Your Name
user.email=yourname@librarian.la
user.email=yourname@domain.name
~~~
{: .output}

Let's also set our default text editor. A text editor is necessary with some of your Git work and the default from Git is vim, which is a great tool, but not useful if you're not familiar with it.
Let's also set our default text editor. A text editor is necessary with some of your Git work, and the default from Git is Vim, which is a text editor that is hard to learn at first. Therefore, we recommend setting a simpler text editor in your Git configuration for this lesson.

> ## Text editors
>
> There are a lot of text editors to choose from, and a lot of people are enthusiastic about their preferences.
> Vi and Vim are popular editors for users of the BASH shell. If you will be using Git or the Shell with a group of people for a project or for work, asking for recommendations or preferences can help you pick an editor to get started with. If you already have your favorite, then you can set it as your default editor with Git.
>
> {: .source}
{: .callout}

Any text editor can be made default by adding the correct file path and command line options (see [GitHub help](https://help.github.com/articles/associating-text-editors-with-git/)).
However, the simplest `core.editor` values are `"notepad"` on Windows, `"nano -w"` on Mac, and `"nano -w"` on Linux.

Expand Down
4 changes: 4 additions & 0 deletions _extras/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ title: "Instructors' Guide"
____
# Tips and Tricks

Known problems that learners encounter:

*Windows*: When using an outdated version of Windows OpenSSH, learners cannot set up the SSH connection to GitHub. SOLUTION: Update OpenSSH version.

____
## Making a handout

Expand Down