This document provides an introduction to Git and GitHub. It explains that Git is a version control system that tracks changes to files, while GitHub is a hosting service for Git repositories that provides a graphical interface and collaboration features. It outlines important GitHub concepts like creating repositories and branches, committing changes, forking repositories, and submitting pull requests. Finally, it provides instructions for setting up Git and a GitHub account and lists some common Git commands.
Download as PPTX, PDF, TXT or read online on Scribd
100%(1)100% found this document useful (1 vote)
191 views
GitHub All Basics To Advanced
This document provides an introduction to Git and GitHub. It explains that Git is a version control system that tracks changes to files, while GitHub is a hosting service for Git repositories that provides a graphical interface and collaboration features. It outlines important GitHub concepts like creating repositories and branches, committing changes, forking repositories, and submitting pull requests. Finally, it provides instructions for setting up Git and a GitHub account and lists some common Git commands.
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 7
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!