Link Search Menu Expand Document

Glossary

General:

Command line – (or Terminal) An interface for entering textual commands on your computer. On Mac OS, this is known as the Terminal and is found in the Applications/Utilities directory. On Windows, this is known as the Command Prompt and can be found under Start>Windows System. Git Bash is also a popular command line interface.

GitGit is a version control software. Many people use Git from the command line, but there is also a desktop GUI interface.

Git Repository – A Git repository is essentially an instance of Git version control running in a file directory on your computer. You create a Git repository on your computer by either cloning a repository from GitHub, or by initializing a new repository in a directory (folder) on your computer. On your own computer, this is called a “local repository.” On GitHub, this is referred to as a “remote repository.” See Git Basics.

GitHub – (or GitHub.com) GitHub is a free(mium) website for hosting remote Git repositories. It is primarily used for code. GitHub facilitates collaboration by providing access control, task management, bug tracking, and more for all of it’s project repositories.

GitHub PagesGitHub Pages is a built-in function of GitHub that converts a repository into a website. Pages is a very simple method for creating static webpages.

Main/Master – The primary repository for a project on GitHub. Formerly named “master”, this was updated to “main” October 1 2020. (Many repositories will still use “master” until updated by their owners.)

Fork – A fork is a remote copy of a GitHub repository. Forking a repository permits others to make changes to a project without modifying the main/master branch of the project. Once forked and modified, changes can be merged with the main/master by way of a Pull Request.

Pull Request – A method for suggesting changes to content stored in a GitHub repository. Someone wishing to make a change to a repository can fork the main repository, modify a file(s), and submit a pull request that will be reviewed by the main repository’s owner. If accepted, the changes will be merged with the main repository.

JekyllJekyll is a static site generator used for creating a variety of online content. GitHub Pages relies on Jekyll behind the scenes. The site you’re looking at right now was created using Jekyll.

MarkdownMarkdown is a super-simple markup language. Markdown is popular for creating documentation and readme files. When used in tandem with Jekyll templates, it can be used to generate static web pages. This page was created in Markdown.

RubyRuby is an open-source programming language, and is used as a framework for Jekyll.

Git Commands:

Use these on your local terminal. Note that these are just a few of the most common basic commands. See Git documentation.

Init (command) - git init. Use init to initiate a new repository within a directory (folder) on your computer.

Add (command)git add myfile.txt. Add is the first step in adding a new file or a modified file into a Git repository. The Add command adds new/modified files to a staging area.

Commit (command)git commit -m "I made some edits". Commit is the second step in adding a new/modified file to the Git repository. Commit moves new/modified files from the staging area to the repository. You must include a message following the -m flag. Be sure to make your commit message descriptive in case you need it later.

Clone (command)git clone https://github.com/user/repo-name Make a copy of a remote repository from GitHub.com on your local computer. This is one method of creating a connection between a local and remote repository that you can use to push or pull changes.

Pull (command)git pull origin master Use this to pull updates from the remote repository down to your local copy.

Push (command)git push origin master Use this to push updates made to your local repository to the remote repository.

Status (command)git status Check if you have any un-added/committed changes to your local repository.

Log (command)git log See past commit history including comments and hash ID of each commit. q to exit Log interface. Use git log --oneline for a condensed log.

Revert (command)git revert [hash id] Use this to revert to an earlier commit. Use the Log command to find previous commits’ hash IDs.