SlideShare una empresa de Scribd logo
1 de 22
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

Más contenido relacionado

La actualidad más candente

Getting Started with GitHub
Getting Started with GitHubGetting Started with GitHub
Getting Started with GitHubMichael Redlich
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hubJasleenSondhi
 
Workshop on Git and GitHub
Workshop on Git and GitHubWorkshop on Git and GitHub
Workshop on Git and GitHubDSCVSSUT
 
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 1Omar Fathy
 
Introduction to GitHub
Introduction to GitHubIntroduction to GitHub
Introduction to GitHubNishan Bose
 
HacktoberFest-Git&GitHub
HacktoberFest-Git&GitHubHacktoberFest-Git&GitHub
HacktoberFest-Git&GitHubGDSCIIITBbsr
 
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 GargNisha Garg
 
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 productiveKarsten Dambekalns
 
Introduction to github slideshare
Introduction to github slideshareIntroduction to github slideshare
Introduction to github slideshareRakesh Sukumar
 
Git and GitHub
Git and GitHubGit and GitHub
Git and GitHubRick Umali
 
Introduction to git and github
Introduction to git and githubIntroduction to git and github
Introduction to git and githubAderemi Dadepo
 
Git for Beginners
Git for BeginnersGit for Beginners
Git for BeginnersRick Umali
 
Git Going w/ Git
Git Going w/ GitGit Going w/ Git
Git Going w/ GitheyMP
 

La actualidad más candente (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 a Introduction to git and Github

git github PPT_GDSCIIITK.pptx
git github PPT_GDSCIIITK.pptxgit github PPT_GDSCIIITK.pptx
git github PPT_GDSCIIITK.pptxAbelPhilipJoseph
 
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 DevelopersMartin Jinoch
 
Using Git to Organize Your Project
Using Git to Organize Your ProjectUsing Git to Organize Your Project
Using Git to Organize Your ProjectManish Suwal 'Enwil'
 
3DC Intro to Git Workshop
3DC Intro to Git Workshop3DC Intro to Git Workshop
3DC Intro to Git WorkshopBeckhamWee
 
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.pdfJayprakash677449
 
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 GitHubScott Graham
 
Getting started With GIT
Getting started With GITGetting started With GIT
Getting started With GITGhadiAlGhosh
 
introductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdfintroductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdfBruceLee275640
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hubNaveen Pandey
 

Similar a 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
 

Último

Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 

Último (20)

Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.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