1 / 20

Introduction to Git Brandon Neil ITS Web Services

Introduction to Git Brandon Neil ITS Web Services. What is git /why do I care? Install Basic commands Remotes Command line?! There’s a GUI for that. Resources. Git. Git is a distributed version control system. Local and remote repositories Local and remote branches

alvaro
Download Presentation

Introduction to Git Brandon Neil ITS Web Services

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to GitBrandon NeilITS Web Services

  2. What is git/why do I care? • Install • Basic commands • Remotes • Command line?! There’s a GUI for that. • Resources

  3. Git Git is a distributed version control system. Local and remote repositories Local and remote branches Local and remote tags

  4. Git You want version control if: • You want a record of all changes, so you can restore to previous points • You are working with others • You are deploying to multiple environments, etc.

  5. Git Projects on Drupal.org also use git.

  6. Install Download Git: http://git-scm.com/downloads Follow download instructions

  7. Basic Commands - git git – view all commands $ git

  8. Basic Commands - Init Init - create an empty new repository $ gitinit

  9. Basic Commands - Status Status - show differences between what has been committed and HEAD $ git status

  10. Basic Commands - Add Add – add files to the stage $ git add foo.info

  11. Basic Commands - Commit Commit – stores contents of the index in a commit along with a message $ git commit –m “Added foo.info”

  12. Basic Commands - Log Log– view previous commits $ gitlog

  13. Basic Commands - Checkout Checkout = checkout branches or previous commits $ gitcheckout coolfeaturebranch $ git checkout 1c899fed6ed

  14. Remote Repositories whose branches you track. Free public repos – Github.com – great documentation

  15. Remote - add Add a repository that you track $ git remote add origin git@github.com:brandonneil/test.git

  16. Push Update remote branch with changes from local branch $ git push–u origin master -u = add a tracking reference

  17. Clone Clone a repository into a new directory $ git clone git@github.com:brandonneil/test.git

  18. Pull Fetch from and merge with another repository or local branch $ git pull

  19. Git GUIs http://git-scm.com/downloads/guis Included are “git-gui” and “git-k” We use Git Tower (Mac only) - $59

  20. Resources Git website: http://git-scm.com/ - Reference docs: http://git-scm.com/docs GitImmersion: http://gitimmersion.com/ Version Control for Designers: http://hoth.entp.com/output/git_for_designers.html GitHub:https://help.github.com/ Fundamentals of Software Version Control http://www.lynda.com/Version-Control-tutorials/Fundamentals-Software-Version-Control/106788-2.html

More Related