Skip to content

Latest commit

 

History

History
37 lines (19 loc) · 1.72 KB

gitinit.md

File metadata and controls

37 lines (19 loc) · 1.72 KB

<<< Previous | Next >>>

Initialize Git

Using cd, navigate inside the folder 'GitPractice.'

Type git init and hit enter.

This initializes the Git repository so it knows to pay attention to this folder.

You should see something like Initialized empty Git repository in /Users/gcdri/Desktop/GitPractice/.git/

Create a file in your folder.

We are going to make our own cheatsheet as a plain text markdown file.

Make sure you've navigated inside your GitPractice folder. Use cd or cd .. as needed.

Type touch mysyllabus.md The '.md' extension means "markdown." You can use touch to create other types of files too: touch [name].[extension].

Start your file.

Open your mysyllabus.md in your text editor. We have been using Sublime.

Give your document a title, insert your name and today's date.

alt text

You'll notice that I added a # before my title, and two asterisks around my name. This is because I am using markdown to cue a heading, and to bold text. Try using markdown yourself to format your text! To make something show up on the next line, add two spaces at the end of each line. To make something appear as a new paragraph, leave an empty line in between. For reference, here is the GitHub Markdown Cheatsheet.

CTRL + S saves the file, SHIFT + CTRL + W closes the Sublime window.

<<< Previous | Next >>>

Glossary ~ ~ ~ Helpful commands