Introduction to GitHub
Gaurav Shukla
Topics
• What is Git & GitHub ?
• Important Concepts for GitHub Users
• Setting up Git and GitHub
What is Git & GitHub ?
Git is an example of Version control is a system that records changes to a
file or set of files and helps us recall specific versions later if needed. E.g.
Subversion (SVN), CVS etc.
It allows you to :
• Revert files or the whole project to an earlier state
• Compare changes over time
• See who modified what?
• Control modifications by collaborators with the permission of
admin/owners.
GitHub is a repository hosting service for Git
• While Git is a command line tool, GitHub provides a web-based graphical
interface that works on top of GIT. It can also be treated as a social platform
to share knowledge and work.
• It also provides access control and several collaboration features, such as
wikis and basic task management tools
Important Concepts for GitHub Users
Creating a repo
Creating a repository for multiple people to work together
Master in a repository
This is the final version that is considered ready to use by anybody in the team or outside if
repository is public.
Creating a Branch
• Create a branch in your project, for an environment where you can try out new ideas.
• Changes you make on a branch don't affect the master unless pull request is accepted.
• Changes committed to branch reflects for you to keep track of different versions
Adding Commits
• Keeps track of your progress as you work on a branch or master.
• Creates a transparent history that others can follow to understand what you've done
and why.
Forking a repository
• It creates a copy for you to work on independently without any changes to theirs.
• Submit a pull request to owner so that the owner can incorporate changes.
Setting up Git and GitHub
Follow these steps with me to setup the Git and GitHub Account.
Git install: http://git-scm.com
GitHub:
Some common and useful Git commands
git config –global user.name “first-name last-name”
git config –global user.email “valid email”
git init
git status
git add
git commit –m “descriptive message”
More : https://education.github.com/git-cheat-sheet-education.pdf
Thank You!
For More Queries contact me at
@iamgauravshukla
gauravshukla0008@gmail.com +91 7007486322
@thisisgauravshukla @thisisgauravshukla