Ashoka R K T
Accompanying text article at http://c-smil.es/githubarticle
Quick and easy way to get
started with Git & Gith...
Intro
• Git is DRCS – Distributed Revision Control
System
• Git is fast
• Created by the Linux team
• This session will mo...
Why Distributed?
• Each clone is a repository, it contains all the
code and version history
• Repository is present in all...
GUI vs CUI
• GUI is simple with GitHub for Windows
or
• CUI is complex, like:
$ git clone git://github.com/ashoka_rkt/dir
The Git & GitHub Jargon
• pull
• push
• Git’s commit vs conventional check in
• staged changes
• clone
• fork
• pull reque...
Git Repository
• Repository  Project
• Your files will be here
• Local repository & online repository
• In GitHub it is p...
Creating Repositories
Creating Repositories
Setting up your system
Setting up your system
Setting up your system
Setting up your system
Setting up your system
Setting up your system
Setting up your system
Setting up your system
Setting up your system
Setting up your system
Setting up your system
Making changes to your local repo
Committing changes to your local repo
Publishing/Pushing changes to GitHub
Files pushed to GitHub
Publish & Sync Vs. Push & Pull
General Collaborative Development
• Shared single repository with access
permissions
• You can push and pull
Collaborative Development in Public repos/Open Source projects
-Fork & Pull Requests Overview-
Your version of
Main Repo’s...
Collaborative Development in
Public repos/Open Source projects
• Fork
– Makes your own repo called a fork
– Freedom to cha...
Misc. GitHub Stuff
• Your email is associated with your commits
• Can hide email for privacy
Thank You
Please provide feedback on
http://bit.ly/githubsession
Accompanying text article at :
http://c-smil.es/githubart...
Upcoming SlideShare
Loading in...5
×

Quick and easy way to get started with Git & GitHub

2,893

Published on

(This is a session planned to be taken in Coimbatore .Net User Group(dotnetcbe.com) 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
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
2,893
On Slideshare
0
From Embeds
0
Number of Embeds
8
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • https://help.github.com/articles/using-pull-requests
  • https://help.github.com/articles/using-pull-requests
  • Transcript of "Quick and easy way to get started with Git & GitHub"

    1. 1. Ashoka R K T Accompanying text article at http://c-smil.es/githubarticle Quick and easy way to get started with Git & Github blog: codeSmiles.com @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://github.com/ashoka_rkt/dir
    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 http://bit.ly/githubsession Accompanying text article at : http://c-smil.es/githubarticle blog: @ashoka_rkt codeSmiles.com

    ×