Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Quick and easy way to get started with Git & GitHub


Published on

(This is a session planned to be taken in Coimbatore .Net User Group( on sunday 13-oct-2013)
In this session I will talk about the simplest and quickest set of steps needed for getting started in Git & GitHub.

- I will talk a little about the concepts of Git & GitHub
- How to use “GitHub for Windows” and setup a GitHub based distributed source control system
- How Open Source projects on GitHub works

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Quick and easy way to get started with Git & GitHub

  1. 1. Ashoka R K T Accompanying text article at Quick and easy way to get started with Git & Github blog: @ashoka_rkt
  2. 2. Intro • Git is DRCS – Distributed Revision Control System • Git is fast • Created by the Linux team • This session will mostly focus on GitHub
  3. 3. Why Distributed? • Each clone is a repository, it contains all the code and version history • Repository is present in all clients when it is cloned, so server crash doesn’t affect much • Each client is a backup of the server’s repository, which also contains file version history
  4. 4. GUI vs CUI • GUI is simple with GitHub for Windows or • CUI is complex, like: $ git clone git://
  5. 5. The Git & GitHub Jargon • pull • push • Git’s commit vs conventional check in • staged changes • clone • fork • pull request • pull vs pull-request • merge pull-request to main repo
  6. 6. Git Repository • Repository  Project • Your files will be here • Local repository & online repository • In GitHub it is present online • Another such site called BitBucket, has free private repositories
  7. 7. Creating Repositories
  8. 8. Creating Repositories
  9. 9. Setting up your system
  10. 10. Setting up your system
  11. 11. Setting up your system
  12. 12. Setting up your system
  13. 13. Setting up your system
  14. 14. Setting up your system
  15. 15. Setting up your system
  16. 16. Setting up your system
  17. 17. Setting up your system
  18. 18. Setting up your system
  19. 19. Setting up your system
  20. 20. Making changes to your local repo
  21. 21. Committing changes to your local repo
  22. 22. Publishing/Pushing changes to GitHub
  23. 23. Files pushed to GitHub
  24. 24. Publish & Sync Vs. Push & Pull
  25. 25. General Collaborative Development • Shared single repository with access permissions • You can push and pull
  26. 26. Collaborative Development in Public repos/Open Source projects -Fork & Pull Requests Overview- Your version of Main Repo’s files created (Your Fork) Main Repo (Source Repo) Fork Review Pull Requests & Merge 1 2 4 Make Changes (Add/modify files) & commit changes You Send Pull Request (Goes to Main Repo admin) 3 Main Repo Admin You You
  27. 27. Collaborative Development in Public repos/Open Source projects • Fork – Makes your own repo called a fork – Freedom to change – Isolated • Push(in this context) – You push your changes to your repo(your fork) • Pull Request – You send pull request to main repo admin – Main Repo admin reviews the code changes and accepts & merges your pull request
  28. 28. Misc. GitHub Stuff • Your email is associated with your commits • Can hide email for privacy
  29. 29. Thank You Please provide feedback on Accompanying text article at : blog: @ashoka_rkt