Skip to content

Instantly share code, notes, and snippets.

@kylecornelissen
Last active February 5, 2019 16:50
Show Gist options
  • Save kylecornelissen/ab077add70a49cc1d71b23e38b1d65d5 to your computer and use it in GitHub Desktop.
Save kylecornelissen/ab077add70a49cc1d71b23e38b1d65d5 to your computer and use it in GitHub Desktop.
Beginner's Guide to Git

What is Git?

  • Git is a system that allows you to save and track your previous work progress while developing software.
  • Allows developers to collaborate on projects.
  • Designed for speed, security, and compatibility with other systems.
  • It has more commands than other version control systems but that can also make it difficult to learn.

Most common terminal commands

  1. change directory cd or cd <directory> (don't include brackets)
  2. list stuff ls
  3. print working directory pwd
  4. make directory mkdir
  5. remove directory rm -r <directory>
  6. create file touch <filename>
  7. remove file rm <filename>

Most common git commands

In order to initiate git, you must first change to the directory you want to initiate (see step 1 above) alt text

Note: Use "Initial Commit" as the comment for every first commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment