Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 2.8 KB

git_1_intro.md

File metadata and controls

51 lines (34 loc) · 2.8 KB

Git Terminology

Git --[terminal]

Git is a system for version control. It runs at the command line on your local machine and allows you to keep track of your files and modifications in a "repository".

GitHub --[browser]

GitHub is a website that allows you to upload your git respositories online. It allows you to have a backup of your files, has a visual interface to navigate your repos, and it allows other people to be able to view your repos.

GitHub is a central place to store your repo, so others can clone it, push to it, and pull from it.

It also includes some very nice tools for software projects, like Markdown README rendering, issue tracker and wiki tools, and the ability to “fork” a project to make your own independent copy of it for development.

What is version control?

Version control systems are a category of software tools that help a software team manage changes to source code over time.

  • Version control software keeps track of every modification to the code in a special kind of database.

Why is version control useful?

  • Backup — computer crashes
    • Undo — Oops, was that important?
  • Collaborate — programming is a team sport
    • Track steps — What happened while you were sleeping
    • Branching and merging — Work in parallel and bring it back together

Remotes

Remotes are copies of a repo on another computer (or on a service like Github)

Example:

  • upstream [organization repo]
  • origin [your forked repo]

Branches

Branching means you diverge from the main line of development and continue to do work without changing the main line. Think of it as "a working folder" or "a draft folder."

Account settings

  • review account options

References

Fun Fact on Git

  • Git was created by Linus Torvalds in 2005 for development of the Linux kernel, with other kernel developers contributing to its initial development.

Check out his Ted Talk: The Mind Behind Linux

Linus Torvalds transformed technology twice -- first with the Linux kernel, which helps power the Internet, and again with Git, the source code management system used by developers worldwide. In a rare interview with TED Curator Chris Anderson, Torvalds discusses with remarkable openness the personality traits that prompted his unique philosophy of work, engineering and life. "I am not a visionary, I'm an engineer," Torvalds says. "I'm perfectly happy with all the people who are walking around and just staring at the clouds ... but I'm looking at the ground, and I want to fix the pothole that's right in front of me before I fall in."

GitHub

Check out this TechCrunch article: What Exactly is GitHub Anyway?