(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
Quick and easy way to get started with Git & GitHub
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. Intro
• Git is DRCS – Distributed Revision Control
System
• Git is fast
• Created by the Linux team
• This session will mostly focus on GitHub
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. GUI vs CUI
• GUI is simple with GitHub for Windows
or
• CUI is complex, like:
$ git clone git://github.com/ashoka_rkt/dir
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. 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
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. 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. Misc. GitHub Stuff
• Your email is associated with your commits
• Can hide email for privacy
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