Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Git basics

Derek Johnson
September 10, 2015

Git basics

Slides from an internal workshop for new staff

Derek Johnson

September 10, 2015
Tweet

More Decks by Derek Johnson

Other Decks in Technology

Transcript

  1. ls -lah View all files and folders in a human

    friendly format with extra info.
  2. Untracked files: (use "git add <file>..." to include in what

    will be committed) README.md nothing added to commit but untracked files present (use "git add" to track)
  3. Changes not staged for commit: (use "git add <file>..." to

    update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) modified: README.md no changes added to commit (use "git add" and/ or "git commit -a")
  4. Untracked files: (use "git add <file>..." to include in what

    will be committed) README.md nothing added to commit but untracked files present (use "git add" to track)
  5. Changes not staged for commit: (use "git add <file>..." to

    update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) modified: README.md no changes added to commit (use "git add" and/ or "git commit -a")