Skip to content

Instantly share code, notes, and snippets.

@nicknist
Last active May 12, 2019 15:53
Show Gist options
  • Save nicknist/5410ae4e2c5fd6200344d08bf5ada558 to your computer and use it in GitHub Desktop.
Save nicknist/5410ae4e2c5fd6200344d08bf5ada558 to your computer and use it in GitHub Desktop.
Beginner's Guide to Git

Beginner's Guide to Git

To start off, Git is a Version Control System. Think of this like Google Documents, where you can go back to previous versions of something whenever you want to (However, Git is more complicated than that). Another great thing about Git is that you can work collaboratively on it. Let's move on to some of the commands that you can use in Git:

There are two types of commands in Git, which are

  • Action commands
  • Safe Commands.

Action Commands:

git init - this command gives you the ability to track changes
git add - this command adds the file to the staging area
git commit - this command puts the changes into the file (modifies the file itself)

Safe Commmands

git status - this command lets you check the status of where your git is at (within the process)
git diff - this command lets you see the differences that you create within the file

Now Let's Talk about Workflow

Git Workflow

Here are the important parts to remember about Git Workflow:

  1. Fork - This will create your own copy to use
  2. Clone - The command git clone will download the project onto your own computer
  3. The action and safe commands will be vital with this workflow as well (see above)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment