Skip to content

Latest commit

 

History

History
97 lines (70 loc) · 3.5 KB

PITCHME.md

File metadata and controls

97 lines (70 loc) · 3.5 KB

git and GitHub

An explanation of version control and tooling with git and GitHub


Version Control System (VCS)

  • Tracks the history of changes as people and teams collaborate on projects together.
  • Keeps versions of your code. Ex: Saving a word document.
  1. Which changes were made?
  2. Who made the changes?
  3. When were the changes made?
  4. Why were changes needed?

git

  • git is a distributed VCS.
  • Every developer's working copy of the code is also a repository that can contain the full history of all changes

Important terms

Repository

  • git project. Directory with .git folder
  • The entire collection of files and folders associated with a project, along with each file’s revision history.

Commit

  • The file history appears as snapshots in time called commits (like a picture), which are linked together and can be separated in branches
  • Each commit log has who made the commit, when, what and why they were made. You provide why/what
  • Rule of thumb: commit what you wouldn't want to lose.

  • Commit message should be
    • < 50 characters
    • A present tense action verb (Add/Update) followed by what was changed
    • screen shot 2018-06-28 at 5 39 50 pm

screen shot 2018-06-28 at 12 51 11 pm


Branch

  • A list of commits in a separate unit.
  • 'Branching out'.
  • Each branch should have a singular purpose.
  • Usually for a feature or fix.

Basic git Commands

Note: Each command usually comes with their own options

screen shot 2018-06-28 at 4 26 33 pm


Activity: Install git and play with a repository


GitHub

  • GitHub hosts repositories for you, so you and others can access them from anywhere.
  • It's a collaborative platform
  • Allows you to have docs/wiki, make issues (log features/bugs), pull requests and more

Activity: Make a GitHub account and push your local repo to GitHub


  • screen shot 2018-06-28 at 4 17 22 pm

Activity: Make a GitHub account and go through GitHub Learning labs


Final Activity - Make a PR to this powerpoint repo


Extra: GitHub Apps

  • screen shot 2018-06-28 at 4 31 56 pm