What The Git?

Speaker: Nathaniel Schweinberg
Twitter: @nathanielks

  • git doesn’t overload your HDD with all the extra versions
  • git allows you to focus on the feature you’re writing
  • git allows multiple developers to work on the same project

how to get started?

  • install git
  • open terminal
  • get it setup
    • git init — inializes a git repositroy in current folder
    • git add . — adds file . to the staging area (. means current folder and all files inside)
    • git commit -m ‘initial commit’ — commits files added to staging area (-m adds commit message)
    • git status — shows the current status of the working directory
  • branching encourages a few things
    • allows you to branch very easily
    • encourages feature based workflow
    • allows for experimentation
  • git branch name — create new branch to work from
  • git checkout branchname — sets the working branch to branchname
  • git merge branchname — merges committed changes from branchname with current branch
  • Repositories – bitbucket unlimited private and github unlimited public repos
  • two basic actions
    • git push — pushes changes to remote repo
    • git pull — pulls changes from remote repo
  • git clone — duplicate a remote repository to your computer
  • commit early, commit often
  • use descriptive commit messages
  • master branch is stable ONLY. – always develop on a separate branch
  • branch naming: initials/feature-name – ex mh/cool-feature

Resource: WordPress skeleton