Your SlideShare is downloading. ×
What the Git? - WordCamp Atlanta
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

What the Git? - WordCamp Atlanta

468
views

Published on


0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
468
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
6
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Nathaniel Schweinberg @nathanielks FightTheCurrent.org
  • 2. What the git?
  • 3. git is a Source ControlManagement application It keeps track of your code!
  • 4. git stores only the changes you make
  • 5. git allows you to focuson the feature you’re writing
  • 6. http://hades.name/blog/2010/01/22/git-your-friend-not-foe-vol-2-branches/
  • 7. git allows multiple developers to work on the same project
  • 8. http://git-scm.com/about/distributed
  • 9. How to get started!
  • 10. Step 1: Install git http://git-scm.com/book/en/Getting-Started-Installing-Git
  • 11. Step 2: OPEN TERMINAL
  • 12. Step 3: Get it set up http://git-scm.com/book/en/Getting-Started-First-Time-Git-Setup
  • 13. How git works http://git-scm.com/about/staging-area
  • 14. git initInitializes a git repository in current folder
  • 15. git add . Adds file . to the staging area( . means current folder and all files inside )
  • 16. git commit –m ‘initial commit’ Commits files added to staging area ( -m adds commit message )
  • 17. git statusShows current status of working directory
  • 18. http://git-scm.com/book/en/Git-Basics-Recording-Changes-to-the-Repository
  • 19. BRANCHING
  • 20. Branching encourages a few thingsFrictionless Context Switching Feature Based Workflow Disposable Experimentation http://git-scm.com/about
  • 21. git branch nameCreate new branch to work from
  • 22. git checkout branchname Sets working tree to branchname
  • 23. git checkout –b branchnameCreate and checkout into branchname
  • 24. git merge branchnameMerges committed changes made in branchname with current branch
  • 25. Repositories!
  • 26. Let’s add a remote repository
  • 27. Two basic actions git push git pullPushes changes to Pulls changes from remote repo remote repo
  • 28. Let’s integrate with WordPress!
  • 29. git cloneUse git clone to duplicatea remote repository locally
  • 30. Submodules! Submodules allow you to keep separatesections of your code under source control ( repos within repos )
  • 31. git submodule add repository path/to/locationAdds submodule located at repository to path/to/location within project
  • 32. .gitignoreUse .gitignore to prevent filesfrom being added to the repo
  • 33. Let’s Talk strategy
  • 34. Commit early,Commit Often
  • 35. Use descriptive commit messages!
  • 36. Master branch is stable ONLY.Always develop on a separate branch
  • 37. Branch naming:initials/feature-name ns/some-cool-feature
  • 38. Working with multiple Devs
  • 39. git rebase branchnameUpdates current branch with changes made in another
  • 40. Resources:http://bit.ly/WhatTheGit
  • 41. Nathaniel Schweinberg @nathanielks FightTheCurrent.org