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

Git Basics

Git Basics

Learning the most basics of Git using GitHub.

Demian Seiler

April 29, 2017
Tweet

More Decks by Demian Seiler

Other Decks in Programming

Transcript

  1. The Plan • Download & Install Git • Setup GitHub

    Account • Checkout a Repo • Committing changes • Pushing Changes (remote) • Pulling Changes
  2. Preliminary Steps 1. Download Git a. Windows - https://git-for-windows.github.io/ b.

    Mac - https://git-scm.com/download/mac 2. Create GitHub account a. https://github.com
  3. Windows Install Use Git From Git Bash Option 2 may

    work fine, but I prefer not to change the OS if possible.
  4. Checkout from repository (repo) 1. Open your command line application

    a. Windows: MINGW b. Mac: Terminal 2. Navigate to your Documents Directory 3. Create project folder a. mkdir wordpress-workshop-[YOUR NAME HERE] 4. Move into your new directory a. cd wordpress-workshop-[YOUR NAME HERE]
  5. Pull changes from remote repository 1. Review your README.md file

    a. # wordpress-workshop-demian 2. Visit your repo on github.com a. Edit the README.md file on github.com so we can pull the change to local b. Commit the change to the file on the github.com site 3. Pull latest changes from github.com to your local a. Return to your command line application b. git pull origin master 4. Review your README.md file a. # wordpress-workshop-demian b. Test line 1