Skip to content

Instantly share code, notes, and snippets.

@kawilliams8
Last active February 5, 2019 04:33
Show Gist options
  • Save kawilliams8/c5d700ef183ca298a5bebe13a292168b to your computer and use it in GitHub Desktop.
Save kawilliams8/c5d700ef183ca298a5bebe13a292168b to your computer and use it in GitHub Desktop.
Beginners Guide to Git

Git, as I understand it today

Git is a distributed version control system created by Linus Torvalds in 2005. Torvalds created Git to work on the Linux kernel, with focus on speed and data integrity. Torvalds is credited as saying:

Microsoft isn't evil, they just make really crappy operating systems.

Linus Torvalds

Additional facts about Torvalds include:

  1. He is Finnish-American and a father of three.
  2. He is the creator and principal developer of the Linux kernel.
  3. He has apparently acted unprofessionaly in the past. He recently apologized and promised to "get some assistance on how to understand people’s emotions and respond appropriately".
  4. When working with no version control system at all, Torvolds would accept others' patches and incorporate them into one major update himself. The only way to examine the history of his process was as a giant <diff> between two full releases. Git Origin Story

How is Git used?

Git, along with GitHub, is used to track changes in files and save intentional snapshots in time. This allows many people to work seemlessly and simultaneously on a project, without overwriting each other's updates.

Large, complex digital businesses use Git and GitHub to manage their code projects:

  • Airbnb
  • Netflix
  • Reddit
  • Shopify
  • Lyft

The following Git commands are important to understand:

git config --global user.name "Sam Smith"

git config --global user.email [email protected]

git init

git add

git commit -m "Commit message"

git push origin master

git status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment