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

Git Introduction For Beginners

Avatar for Aaron Wang Aaron Wang
November 08, 2013

Git Introduction For Beginners

Avatar for Aaron Wang

Aaron Wang

November 08, 2013
Tweet

Other Decks in Programming

Transcript

  1. What's Git • A version control system. • A stupid

    content tracker. • Started by Linus Torvalds for Linux kernel development @ 2005
  2. Git Characteristics • Distributed & Decentralized, client = server •

    Fast Branching & Merging • Efficient In Storage & Network • Toolkit Based Design • Flexible Workflow
  3. Get Started • git config --global user.name <name> git config

    --global user.email <email> • git init/git clone <url> • git status, git diff, git add <filename> • git commit -m <msg> • git log
  4. Remote Operations • git remote add <name> <url> • git

    pull = git fetch + git merge • git push
  5. Understanding Branch • git checkout -b <name> • git branch

    • git merge <name>[, solve conflicts, git commit] • Branch is just a ref to a commit • It moves X---Y---X topic / \ A---B---C---D---H master
  6. What's GitLab • An open source copy of GitHub •

    Self hosted git management application – Access control – Merge requests / code review – Web hooks – Simple issue tracker – Simple wiki system
  7. Markdown • A lightweight markup language(Textile/BBCode/MediaWiki) => HTML • Created

    by John Gruber and Aaron Swartz • Flavors: – PHP Extra – StackOverflow – GitHub – GitLab http://git.augmentum.com.cn/help/markdown