SlideShare a Scribd company logo
Welcome to GDSC
Chapter
We are here to cover the differences between theories and practical aspect of
technology in our communities.
WELCOMING ADDRESS
BY
DAVID KINYAJUI
(GDSC LEAD)
Introduction to Git and GitHub
(By Wycliff Njenga)
Git is a software for tracking changes in any set of files(folders), usually used for coordinating
work among programmers collaborating in developing source code during software development.
GitHub is an online platform/provider of internet used for hosting software development and
version control using git.
It helps a team work on a project and track their progress by seeing changes every team
programmer/coder makes to it hence help them to work together.
Categories of Version Control System(VCS)
1. Centralized VCS - Allows team members to connect to a central server to get the latest copy
of code and commit their changes among the programmers. Examples include Subversion
and Microsoft Team foundation. Some of the disadvantages of Centralized vcs is that incase
of central failure, work can not proceed.
2. Distributed VCS - Team members have the project history locally in their machines and can
link directly to each other. Git and Mercurial are good examples of distributes VCS.
Advantages of Git
We are going to major on git since it is the most popular version control
system with over 70% of programmers across the globe using it.
Here is why git is the most used VCS:
 It is free
 It is open source
 It is superfast
 Scalable
 Cheap branching/merging
HOW TO INSTALL GIT AND CREATE A GITHUB ACCOUNT
-Git supports Windows, macOS and Linux.
-To download it go to your google search bar and search for the latest git
software. From the official site of git choose the package that fits your
operating system and download it. (https://git-scm.com)
-Once you have the setup follow the installation instruction to install it to your
machine. Be sure to check the necessary and recommended git features. Take
a look at git release notes in case you get stuck during the installation process.
-If everything has worked out fine, then the software is ready for use. Once
you've done that, create a GitHub account here(https://github.com)
Getting started with Git
Git can be used on a command line. Modern code editors and IDEs support
git therefore they have basic git features.
Git also have Graphical User Interfaces and the most popular tools are:
//GitKracken Git GUI
//Sourcetree
--GitKraken works across different platforms such as Get Cracking Boards
for issue tracking and git cracking timelines for project timeline.
--Sourcetree on the other hand is free but only available for windows and
macOS which means Linux users will have to use another Git GUI tool.
HOW TO CHECK IF GIT IS INSTALLED IN YOUR COMPUTER
Open a terminal or command prompt window. If you are on mac press
command + space and type terminal. For windows users click search icon and
type cmd.
To know that git is installed type git –version.
In windows, your installer will install Git Bash application which is basically a
git command line.
CONFIGURING GIT
(By Jared Otieno)
You will need your GitHub account’s username and email during git configuration.
In configuration we have to specify a few things such as Name, Email, Default Editor and Line
ending.
The above configurations occur at different levels.
 System – for all users
 Global – for all repositories of the current user.
 Local – for the current user.
Let’s do it practically (Open your command prompt |CMD|)
 git config –global user.name “Your User Name. We are using those quotation marks because
of the spaces between the name.
 git config –global user.email youremail@gmail.com
 git config –global core.editor “code –wait”
 git config –global –e. Will open our default editor to edit all our global settings.
Configure how git should handle end of lines.
In windows end of lines are marked with two special characters
 r – carriage return
 n – line feed
In mac end of lines are marked with line feed n.
 git config –global core.autocrlf true for windows
 git config –global core.autocrlf input for mac and Linux.
To get help with git configuration you can type git config on the google search bar or on
your command line type:
 git config –help. Press space to go to the next page and q to quit.
 git config –h for short summary.
CREATING REPOSITORY AND STORING OUR PROJECTS
After configuring our git we now need to create a repository in the GitHub
account and use it to store our projects. As stated earlier, a repository is a
special type of a database that keeps a projects code.
To create a repository follow the procedures stated below.
 Login to GitHub with your username and password
 Got to create repository
 Put the repository name
 If the name is checked to be available click create repository.
Now our repository is ready to receive a project so go to your git bash to
do it. Here is how:
• cd to your project directory.
• git init to initialize your project
• git add name of project to add your project to git
• git commit –m ‘show the progress’ to update it to git
• git remote add origin link to your repository (at this stage copy the link of
your repository from your GitHub account and paste it here)
• git push –u origin master to push your project to your GitHub account.
GitHub Desktop
(By David Kinyanjui)
What is GitHub Desktop?
-GitHub Desktop is an application that enables you to interact
with GitHub using GUI instead of the command line or a web
browser.
-As mentioned earlier by Jared, GitHub encourages you and
your team to collaborate using best practices with Git and
GitHub. You can use GitHub Desktop to complete most Git
commands from your desktop with visual confirmation of
changes. You can push to, pull from, or clone remote
repositories with GitHub Desktop.
How to download and Install.
We will provide a software copy of windows operating system
laptops but before that you we can download it from
desktop.github.com.
Download and Install the software and lets get started.
After successful installation you come across the below
screenshot.
Contributing to projects with GitHub Desktop
After installing, authenticating, and configuring
the app, you are ready to start using GitHub
Desktop. You can create, add or clone
repositories and use GitHub Desktop to manage
contributions to your repositories.
Showcasing cloning, creating, pushing and
pulling repos using GitHub Desktop
GDSC SESSION CALENDER
By Alex
(Animation and Graphics Designer)
Date Time Session Topics
26th Sept 2021 1600hrs Info session and introduction Introducing GDSC core lead and GDSC alumni.
21st Nov 2021 1600hrs Introduction to git and GitHub Installing Git, GitHub, Cloning, Repos, Push, Pull, Using
Terminal, GitHub Desktop,
5th Dec 2021 1600hrs Introduction to UI/UX designing Installing figma /Adobe, designing, Animating
11th Dec 2021 0200hrs GDSC HIKE To be communicated(Place of Interest)
8th Jan 2022 1600hrs Cyber Security and Networking Internet, User Security, Networking
- Jan 2022 1600hrs Introduction to SQL and NOSQL
Databases
Installation, Creating, Analyzing, reading and
implementing.
22nd Jan 2022 1600hrs Introduction to API’s API’s
30th Jan 2022 1600hrs Submission of GDSC projects GDSC Mobile Apps and Web Apps

More Related Content

What's hot

Getting Started with GitHub
Getting Started with GitHubGetting Started with GitHub
Getting Started with GitHub
Michael Redlich
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hub
JasleenSondhi
 
Workshop on Git and GitHub
Workshop on Git and GitHubWorkshop on Git and GitHub
Workshop on Git and GitHub
DSCVSSUT
 
Git n git hub
Git n git hubGit n git hub
Git n git hub
Jiwon Baek
 
Github
GithubGithub
Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1
Omar Fathy
 
Introduction to GitHub
Introduction to GitHubIntroduction to GitHub
Introduction to GitHub
Nishan Bose
 
HacktoberFest-Git&GitHub
HacktoberFest-Git&GitHubHacktoberFest-Git&GitHub
HacktoberFest-Git&GitHub
GDSCIIITBbsr
 
GitHub
GitHubGitHub
GitHub
ThomasLai27
 
Github
GithubGithub
GitHub Classroom - An Open Source Learning Platform by Dr. Anchal Garg
GitHub Classroom - An Open Source Learning Platform by Dr. Anchal GargGitHub Classroom - An Open Source Learning Platform by Dr. Anchal Garg
GitHub Classroom - An Open Source Learning Platform by Dr. Anchal Garg
Nisha Garg
 
Git best practices 2016
Git best practices 2016Git best practices 2016
Git best practices 2016
Otto Kekäläinen
 
How Git and Gerrit make you more productive
How Git and Gerrit make you more productiveHow Git and Gerrit make you more productive
How Git and Gerrit make you more productive
Karsten Dambekalns
 
Introduction to github slideshare
Introduction to github slideshareIntroduction to github slideshare
Introduction to github slideshare
Rakesh Sukumar
 
Git and GitHub
Git and GitHubGit and GitHub
Git and GitHub
Rick Umali
 
Introduction to git and github
Introduction to git and githubIntroduction to git and github
Introduction to git and github
Aderemi Dadepo
 
Git for Beginners
Git for BeginnersGit for Beginners
Git for Beginners
Rick Umali
 
Github
GithubGithub
Github
MeetPatel710
 
Git Going w/ Git
Git Going w/ GitGit Going w/ Git
Git Going w/ Git
heyMP
 
Github
GithubGithub
Github
siva sandeep
 

What's hot (20)

Getting Started with GitHub
Getting Started with GitHubGetting Started with GitHub
Getting Started with GitHub
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hub
 
Workshop on Git and GitHub
Workshop on Git and GitHubWorkshop on Git and GitHub
Workshop on Git and GitHub
 
Git n git hub
Git n git hubGit n git hub
Git n git hub
 
Github
GithubGithub
Github
 
Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1
 
Introduction to GitHub
Introduction to GitHubIntroduction to GitHub
Introduction to GitHub
 
HacktoberFest-Git&GitHub
HacktoberFest-Git&GitHubHacktoberFest-Git&GitHub
HacktoberFest-Git&GitHub
 
GitHub
GitHubGitHub
GitHub
 
Github
GithubGithub
Github
 
GitHub Classroom - An Open Source Learning Platform by Dr. Anchal Garg
GitHub Classroom - An Open Source Learning Platform by Dr. Anchal GargGitHub Classroom - An Open Source Learning Platform by Dr. Anchal Garg
GitHub Classroom - An Open Source Learning Platform by Dr. Anchal Garg
 
Git best practices 2016
Git best practices 2016Git best practices 2016
Git best practices 2016
 
How Git and Gerrit make you more productive
How Git and Gerrit make you more productiveHow Git and Gerrit make you more productive
How Git and Gerrit make you more productive
 
Introduction to github slideshare
Introduction to github slideshareIntroduction to github slideshare
Introduction to github slideshare
 
Git and GitHub
Git and GitHubGit and GitHub
Git and GitHub
 
Introduction to git and github
Introduction to git and githubIntroduction to git and github
Introduction to git and github
 
Git for Beginners
Git for BeginnersGit for Beginners
Git for Beginners
 
Github
GithubGithub
Github
 
Git Going w/ Git
Git Going w/ GitGit Going w/ Git
Git Going w/ Git
 
Github
GithubGithub
Github
 

Similar to Introduction to git and Github

GIT By Sivakrishna
GIT By SivakrishnaGIT By Sivakrishna
GIT By Sivakrishna
Nyros Technologies
 
Git & GitLab
Git & GitLabGit & GitLab
Git & GitLab
Gaurav Wable
 
Introduction to git & github
Introduction to git & githubIntroduction to git & github
Introduction to git & github
Vinothini KadambavanaSundaram
 
git github PPT_GDSCIIITK.pptx
git github PPT_GDSCIIITK.pptxgit github PPT_GDSCIIITK.pptx
git github PPT_GDSCIIITK.pptx
AbelPhilipJoseph
 
BLUG 2012 Version Control for Notes Developers
BLUG 2012 Version Control for Notes DevelopersBLUG 2012 Version Control for Notes Developers
BLUG 2012 Version Control for Notes Developers
Martin Jinoch
 
Using Git to Organize Your Project
Using Git to Organize Your ProjectUsing Git to Organize Your Project
Using Git to Organize Your Project
Manish Suwal 'Enwil'
 
Mini-training: Let’s Git It!
Mini-training: Let’s Git It!Mini-training: Let’s Git It!
Mini-training: Let’s Git It!
Betclic Everest Group Tech Team
 
Github By Nyros Developer
Github By Nyros DeveloperGithub By Nyros Developer
Github By Nyros Developer
Nyros Technologies
 
3DC Intro to Git Workshop
3DC Intro to Git Workshop3DC Intro to Git Workshop
3DC Intro to Git Workshop
BeckhamWee
 
Learning Git and GitHub - BIT GDSC.pdf
Learning Git and GitHub - BIT GDSC.pdfLearning Git and GitHub - BIT GDSC.pdf
Learning Git and GitHub - BIT GDSC.pdf
Jayprakash677449
 
Git and git hub basics
Git and git hub basicsGit and git hub basics
Git and git hub basics
prostackacademy
 
Git.pptx
Git.pptxGit.pptx
Git hub visualstudiocode
Git hub visualstudiocodeGit hub visualstudiocode
Git hub visualstudiocode
Rolands Krumbergs
 
1-Intro to VC & GIT PDF.pptx
1-Intro to VC & GIT PDF.pptx1-Intro to VC & GIT PDF.pptx
1-Intro to VC & GIT PDF.pptx
HuthaifaAlmaqrami1
 
Open up your platform with Open Source and GitHub
Open up your platform with Open Source and GitHubOpen up your platform with Open Source and GitHub
Open up your platform with Open Source and GitHub
Scott Graham
 
Subversion to Git Migration
Subversion to Git MigrationSubversion to Git Migration
Subversion to Git Migration
Manish Chakravarty
 
Getting started With GIT
Getting started With GITGetting started With GIT
Getting started With GIT
GhadiAlGhosh
 
introductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdfintroductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdf
BruceLee275640
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hub
Naveen Pandey
 

Similar to Introduction to git and Github (20)

GIT By Sivakrishna
GIT By SivakrishnaGIT By Sivakrishna
GIT By Sivakrishna
 
Git & GitLab
Git & GitLabGit & GitLab
Git & GitLab
 
Introduction to git & github
Introduction to git & githubIntroduction to git & github
Introduction to git & github
 
git github PPT_GDSCIIITK.pptx
git github PPT_GDSCIIITK.pptxgit github PPT_GDSCIIITK.pptx
git github PPT_GDSCIIITK.pptx
 
BLUG 2012 Version Control for Notes Developers
BLUG 2012 Version Control for Notes DevelopersBLUG 2012 Version Control for Notes Developers
BLUG 2012 Version Control for Notes Developers
 
Git Training
Git TrainingGit Training
Git Training
 
Using Git to Organize Your Project
Using Git to Organize Your ProjectUsing Git to Organize Your Project
Using Git to Organize Your Project
 
Mini-training: Let’s Git It!
Mini-training: Let’s Git It!Mini-training: Let’s Git It!
Mini-training: Let’s Git It!
 
Github By Nyros Developer
Github By Nyros DeveloperGithub By Nyros Developer
Github By Nyros Developer
 
3DC Intro to Git Workshop
3DC Intro to Git Workshop3DC Intro to Git Workshop
3DC Intro to Git Workshop
 
Learning Git and GitHub - BIT GDSC.pdf
Learning Git and GitHub - BIT GDSC.pdfLearning Git and GitHub - BIT GDSC.pdf
Learning Git and GitHub - BIT GDSC.pdf
 
Git and git hub basics
Git and git hub basicsGit and git hub basics
Git and git hub basics
 
Git.pptx
Git.pptxGit.pptx
Git.pptx
 
Git hub visualstudiocode
Git hub visualstudiocodeGit hub visualstudiocode
Git hub visualstudiocode
 
1-Intro to VC & GIT PDF.pptx
1-Intro to VC & GIT PDF.pptx1-Intro to VC & GIT PDF.pptx
1-Intro to VC & GIT PDF.pptx
 
Open up your platform with Open Source and GitHub
Open up your platform with Open Source and GitHubOpen up your platform with Open Source and GitHub
Open up your platform with Open Source and GitHub
 
Subversion to Git Migration
Subversion to Git MigrationSubversion to Git Migration
Subversion to Git Migration
 
Getting started With GIT
Getting started With GITGetting started With GIT
Getting started With GIT
 
introductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdfintroductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdf
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hub
 

Recently uploaded

Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
GeoBlogs
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 

Recently uploaded (20)

Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 

Introduction to git and Github

  • 1.
  • 2. Welcome to GDSC Chapter We are here to cover the differences between theories and practical aspect of technology in our communities.
  • 3.
  • 5. Introduction to Git and GitHub (By Wycliff Njenga)
  • 6. Git is a software for tracking changes in any set of files(folders), usually used for coordinating work among programmers collaborating in developing source code during software development. GitHub is an online platform/provider of internet used for hosting software development and version control using git. It helps a team work on a project and track their progress by seeing changes every team programmer/coder makes to it hence help them to work together. Categories of Version Control System(VCS) 1. Centralized VCS - Allows team members to connect to a central server to get the latest copy of code and commit their changes among the programmers. Examples include Subversion and Microsoft Team foundation. Some of the disadvantages of Centralized vcs is that incase of central failure, work can not proceed. 2. Distributed VCS - Team members have the project history locally in their machines and can link directly to each other. Git and Mercurial are good examples of distributes VCS.
  • 7. Advantages of Git We are going to major on git since it is the most popular version control system with over 70% of programmers across the globe using it. Here is why git is the most used VCS:  It is free  It is open source  It is superfast  Scalable  Cheap branching/merging
  • 8. HOW TO INSTALL GIT AND CREATE A GITHUB ACCOUNT -Git supports Windows, macOS and Linux. -To download it go to your google search bar and search for the latest git software. From the official site of git choose the package that fits your operating system and download it. (https://git-scm.com) -Once you have the setup follow the installation instruction to install it to your machine. Be sure to check the necessary and recommended git features. Take a look at git release notes in case you get stuck during the installation process. -If everything has worked out fine, then the software is ready for use. Once you've done that, create a GitHub account here(https://github.com)
  • 9. Getting started with Git Git can be used on a command line. Modern code editors and IDEs support git therefore they have basic git features. Git also have Graphical User Interfaces and the most popular tools are: //GitKracken Git GUI //Sourcetree --GitKraken works across different platforms such as Get Cracking Boards for issue tracking and git cracking timelines for project timeline. --Sourcetree on the other hand is free but only available for windows and macOS which means Linux users will have to use another Git GUI tool.
  • 10. HOW TO CHECK IF GIT IS INSTALLED IN YOUR COMPUTER Open a terminal or command prompt window. If you are on mac press command + space and type terminal. For windows users click search icon and type cmd. To know that git is installed type git –version. In windows, your installer will install Git Bash application which is basically a git command line.
  • 12. You will need your GitHub account’s username and email during git configuration. In configuration we have to specify a few things such as Name, Email, Default Editor and Line ending. The above configurations occur at different levels.  System – for all users  Global – for all repositories of the current user.  Local – for the current user. Let’s do it practically (Open your command prompt |CMD|)  git config –global user.name “Your User Name. We are using those quotation marks because of the spaces between the name.  git config –global user.email youremail@gmail.com  git config –global core.editor “code –wait”  git config –global –e. Will open our default editor to edit all our global settings.
  • 13. Configure how git should handle end of lines. In windows end of lines are marked with two special characters  r – carriage return  n – line feed In mac end of lines are marked with line feed n.  git config –global core.autocrlf true for windows  git config –global core.autocrlf input for mac and Linux. To get help with git configuration you can type git config on the google search bar or on your command line type:  git config –help. Press space to go to the next page and q to quit.  git config –h for short summary.
  • 14. CREATING REPOSITORY AND STORING OUR PROJECTS After configuring our git we now need to create a repository in the GitHub account and use it to store our projects. As stated earlier, a repository is a special type of a database that keeps a projects code. To create a repository follow the procedures stated below.  Login to GitHub with your username and password  Got to create repository  Put the repository name  If the name is checked to be available click create repository.
  • 15. Now our repository is ready to receive a project so go to your git bash to do it. Here is how: • cd to your project directory. • git init to initialize your project • git add name of project to add your project to git • git commit –m ‘show the progress’ to update it to git • git remote add origin link to your repository (at this stage copy the link of your repository from your GitHub account and paste it here) • git push –u origin master to push your project to your GitHub account.
  • 17. What is GitHub Desktop? -GitHub Desktop is an application that enables you to interact with GitHub using GUI instead of the command line or a web browser. -As mentioned earlier by Jared, GitHub encourages you and your team to collaborate using best practices with Git and GitHub. You can use GitHub Desktop to complete most Git commands from your desktop with visual confirmation of changes. You can push to, pull from, or clone remote repositories with GitHub Desktop.
  • 18. How to download and Install. We will provide a software copy of windows operating system laptops but before that you we can download it from desktop.github.com. Download and Install the software and lets get started. After successful installation you come across the below screenshot.
  • 19.
  • 20. Contributing to projects with GitHub Desktop After installing, authenticating, and configuring the app, you are ready to start using GitHub Desktop. You can create, add or clone repositories and use GitHub Desktop to manage contributions to your repositories. Showcasing cloning, creating, pushing and pulling repos using GitHub Desktop
  • 21. GDSC SESSION CALENDER By Alex (Animation and Graphics Designer)
  • 22. Date Time Session Topics 26th Sept 2021 1600hrs Info session and introduction Introducing GDSC core lead and GDSC alumni. 21st Nov 2021 1600hrs Introduction to git and GitHub Installing Git, GitHub, Cloning, Repos, Push, Pull, Using Terminal, GitHub Desktop, 5th Dec 2021 1600hrs Introduction to UI/UX designing Installing figma /Adobe, designing, Animating 11th Dec 2021 0200hrs GDSC HIKE To be communicated(Place of Interest) 8th Jan 2022 1600hrs Cyber Security and Networking Internet, User Security, Networking - Jan 2022 1600hrs Introduction to SQL and NOSQL Databases Installation, Creating, Analyzing, reading and implementing. 22nd Jan 2022 1600hrs Introduction to API’s API’s 30th Jan 2022 1600hrs Submission of GDSC projects GDSC Mobile Apps and Web Apps