0% found this document useful (0 votes)
12 views

Exercise+1+Getting+Started+Git

Uploaded by

saumya.kumari
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Exercise+1+Getting+Started+Git

Uploaded by

saumya.kumari
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Git and GitHub for Writers Exercise 1

Exercise 1: Getting Started with Git


Follow the steps for either Mac or Windows to get started with Git.

Mac

Text Editor
You are going to need a text editor to do these exercises. You can do an online search for “Mac text
editor” to find several. A good open source one is Brackets at https://brackets.io/. Download and install
the editor.

Git
Git is automatically installed on Macs. We will access it through the Unix command line interface. Open
the Finder, choose Applications from the left side, then open Utilities. Double-click Terminal to open
the terminal. (Note: your Mac might not show the “.app” at the end of each application. Mine is set to
show the file types as suffixes.)

In the terminal app, type:

git --version
You should see the version listed.

1 © 2018 SDK Bridge


Git and GitHub for Writers Exercise 1

Windows

Text Editor
You are going to need a text editor to do these exercises. You can do an online search for “Windows text
editor” to find some. I don’t recommend Notepad, because it doesn’t automatically update. A free one
that I use is Notepad++ at https://notepad-plus-plus.org. Download and install the editor.

Git
Git is not automatically installed on Windows. Although you can access it through the Windows console,
for this class, I will ask you to use an application called git bash. Follow these instructions to install it:

1. Go to https://git-scm.com/downloads and click on Windows


2. Run the executable. It will bring up several dialogs before installing.
a. Read and accept the license.
b. Select destination location: Ok to leave as default and just click Next.
c. Select components: Ok to leave as default and just click Next.
d. Select start menu folder: Ok to leave as default
e. Choosing the default editor: Set the dropdown to the editor you have chosen. Only
leave it as Vim if you are familiar with this ancient editor.
f. Adjusting your path environment: Choose Use Git from Git Bash only (unless you are
very comfortable with the Windows console app).
g. Choosing the HTTPS transport backend: Leave as Use the Open SSL library
h. Configuring the line ending conversions: Leave as Checkout Windows style, commit
Unix style line endings
i. Configuring the terminal editor: Leave as MinTTY
j. Configuring the extra options: Leave all extra options checked.
k. Click Install
3. From the Start menu, open up the Git folder, and then Git Bash.
4. Type:

git --version

You should see the version listed.

2 © 2018 SDK Bridge

You might also like