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

Git

 Git

An overview of Git given to the TrendyMinds crew

Avatar for Aaron Bushnell

Aaron Bushnell

April 30, 2013
Tweet

Other Decks in Programming

Transcript

  1. Git

  2. "Git is a version control system, a simple command line

    tool for keeping a history on the state of your source code projects" — Github.com
  3. $ git checkout master $ git merge feature-blog $ git

    log --graph --all $ git branch -d feature- blog
  4. $ git checkout -b feature-favfoods $ git add index.html $

    git commit -m "Add a list of my favorite foods"
  5. $ git checkout master $ git merge --no-ff feature-favfoods $

    git log --graph --all $ git branch -d feature- favfoods
  6. $ git checkout -b feature-blog $ git commit -m "Add

    listing view of blog articles" $ git commit -m "Add sidebar with ability to toggle categories"
  7. $ git commit -m "Add some archive stuff" $ git

    commit -m "Add archive links in sidebar for all areas of the blog"
  8. # Files ending with this extension *.diff *.log *.sass-cache #

    OS-based files .DS_Store Thumbs.db # Upload directories uploads/ # Image sizer directory sized/ make/
  9. Andre: top five list of fav guilty pleasure songs (fav-guilty-pleasure.html)

    Allen: top five list of Nintendo 64 games (fav-n64-games.html) Daniel: top five list of fav books without "the" in title (fav-books-without-the.html) David: top five list of fav movies made in 90s (fav-90s-movies.html) Todd: top five list of fav snacks when you were a kid (fav-snacks.html)
  10. $ git checkout -b [BRANCH] # Make your changes $

    git add [FILES] $ git commit -m "[MESSAGE]" $ git checkout master $ git pull # Grab any team changes $ git merge --no-ff [BRANCH] # Fix any merge issues and commit $ git branch -d [BRANCH] $ git push # Push changes to Beanstalk
  11. ?