SlideShare ist ein Scribd-Unternehmen logo
1 von 31
GIT & GitHub Basics
Pro Stack Academy
www.prostackacademy.com
What is Git?
Git is a distributed version control
system, meaning your local copy of code
is a complete version control repository.
Github
GitHub is a Git repository hosting service, but it
adds many of its own features. While Git is a
command line tool, GitHub provides a Web-
based graphical interface. It also provides access
control and several collaboration features, such
as a wikis and basic task management tools for
every project.
1. Git & Github Architecture
2. Git & Github Architecture
3. Git & Github Architecture
Gitbucket
GitHub is an open source hosting
services. This provides free repositories
but for utilizing all features, the user
might have to buy the premium package.
GitLab
GitLab is an open source of
self-hosting services. It is free
for every community of
coders.
How to Install the git
Here are the steps to follow to install Git on Windows:
1. Download the executable Git file from git-scm.com/downloads
2. Run the installation file with Administrator rights
3. Choose an appropriate installation location such as C:_toolsgit
4. Install the default components, including Git GUI Here and Git Bash
Here
5. Choose your preferred Git default editor. We recommend Notepad++.
6. Allow Git to be added to the Windows PATH
7. Accept the default line ending conversion for Unix and Windows
compatibility
8. Chose the extra option to enable system caching
9. Click Finish to complete the install.
10. Choose to open a Git Bash shell and start using Git!
1. Images for how to install the git
2. Images for how to install the git
3. Images for how to install the git
4. Images for how to install the git
How to create github account
•Some steps to be followed:
•Go to https://github.com/join in a web browser. You can use any web browser on your computer,
phone, or tablet to join.Some add blockers, including uBlock Origin, prevent GitHub's verification
CAPTCHA puzzle from appearing. For best results, disable your web browser's add blocker when
signing up for GitHub.
•Enter your personal details. In addition to creating a username and entering an email address, you'll
also have to create a password. Your password must be at least 15 characters in length or at least 8
characters with at least one number and lowercase letter.[1]
•Click the green Create an account button. It's below the form.
•Complete the CAPTCHA puzzle. The instructions vary by puzzle, so just follow the on-screen
instructions to confirm that you are a human.
•Click the Choose button for your desired plan. One you select a plan, GitHub will send an email
confirmation message to the address you entered. The plan options are:[2]
•Click the Verify email address button in the message from GitHub. This confirms your email
address and returns you to the sign-up process.
•Review your plan selection and click Continue. You can also choose whether you want to receive
updates from GitHub via email by checking or unchecking the "Send me updates" box.
•Select your preferences and click Submit. GitHub displays a quick survey that can help you tailor
your experience to match what you're looking for. Once you make your selection, you'll be taken to a
screen that allows you to set up your first repository.
Image for how to create the github account
How to create github repository
Steps to Create a repository:
1. In the upper-right corner of any page, use the drop-down
menu, and select New repository.
2. Type a short, memorable name for your repository. ...
3. Optionally, add a description of your repository. ...
4. Choose to make the repository either public or private. ...
5. Select Initialize this repository with a README.
6. Click Create repository.
1. Image for how to create github repository
2. Image for how to create github repository
How to install the Visual Studio Code
1) Navigate to download link https://code.visualstudio.com/download
You can choose the custom 32 bit or 64 bit if you are aware of which
architecture system you are using. If you are not sure then you can
simply click on windows Icon. This would download the VS Code installer to
your machine.
2) Start VS-Code Installation Process: Navigate to the folder where VS-Code
Installer is downloaded and double click on it to kick start the installation
process. Once the installation is started, click Next on the welcome screen.
3) Accept the License Agreement: Go through the license agreement, Click on I
accept the agreement and click Next.
4) Choose Installation Directory: By default, VS-Code is installed
under C:users{username}AppDataLocalProgramsMicrosoft VS Code, but
this default location of installation can be changed by clicking on Browse.
5) Choose Start Menu Folder: By Default, the program’s shortcut will be placed
in the Visual Studio Code folder but this can be changed from this window.
Once done, click on Next.
How to install the Visual Studio Code
6) Choose Additional Options: Various options to choose:
•Create a desktop icon: Upon choosing this option desktop shortcut will be
created, it will be easy for you to launch VS Code next time.
•Add “Open with code” action to Windows Explorer file context menu: This
would allow an option to open a file in VS Code on performing the right click
on the file.
•Add Open with code action to Windows Explorer folder context menu: This
would allow an option to open a folder in VS Code on performing the right
click on the folder.
•Register Code as an editor for supported file types: File supported by VS
Code will be automatically opened in Visual Studio Code editor.
•Add to PATH (available after restart): Visual Studio Code installed directory
path will be added to an environment variable automatically but after the
restart.
•Once you choose options that you need, click on Next to continue the
installation:
How to install the Visual Studio Code
6) Review selected options: Ready to Install screen
will show you things which you chose from the
previous screen, you can review. Change anything if
necessary, else click on Install to begin the installation.
7) Launch the Visual Studio Code: Wait for the
installation to complete and at the end final window
will be displayed. Select Launch VS Code and click
on FInish.
8) Editor Screen Opens: The VS Code IDE is launched
and the editor is now open.
1. Images for how to install the visual studio code
2. Images for how to install the visual studio code
Git Commands
1. git init = git init
2. git clone = git clone /path/to/repository
3. git clone username@host:/path/to/repository
4. git push = git push -u origin master/git push -u origin master
5. git pull = git pull origin master
6. git remote = git remote and origin TestGit
7. git commit = git commit -m "first commit" test.txt/git
commit -m "second commit" test.txt
8. git add = git add test.txt
9. git config --global user.name "Sam Smith"git config --
global user.email sam@example.com
10. Status = git status
Github Interview Questions
1. What is the command you can use to write a
commit message?
The command that is used to write a commit message is
“git commit –a”. The –a on the command line instructs
git to commit the new content of all tracked files that
have been modified. You can use “git add<file>” before
git commit –a if new files need to be committed for the
first time.
Github Interview Questions
2. What is the difference between GIT and SVN?
The difference between GIT and SVN is
a) Git is less preferred for handling extremely large files
or frequently changing binary files while SVN can handle
multiple projects stored in the same repository.
b) GIT does not support ‘commits’ across multiple
branches or tags. Subversion allows the creation of folders
at any location in the repository layout.
c) Gits are unchangeable, while Subversion allows
committers to treat a tag as a branch and to create multiple
revisions under a tag root.
Github Interview Questions
3. What are the advantages of using GIT?
a) Data redundancy and replication
b) High availability
c) Only one.git directory per repository
d) Superior disk utilization and network
performance
e) Collaboration friendly
f) Any sort of projects can use GIT
Github Interview Questions
4. What language is used in GIT?
GIT is fast, and ‘C’ language makes this possible
by reducing the overhead of runtimes associated
with higher languages.
5. What is the function of ‘GIT PUSH’ in GIT?
‘GIT PUSH’ updates remote refs along with
associated objects.
Github Interview Questions
6. What is the function of git clone?
The git clone command creates a copy of
an existing Git repository. To get the copy
of a central repository, ‘cloning’ is the
most common way used by programmers.
Github Interview Questions
7. What is the function of ‘git config’?
The ‘git config’ command is a convenient
way to set configuration options for your
Git installation. Behaviour of a
repository, user info, preferences etc. can
be defined through this command.
Git and git hub basics

Weitere ähnliche Inhalte

Was ist angesagt?

Understanding GIT and Version Control
Understanding GIT and Version ControlUnderstanding GIT and Version Control
Understanding GIT and Version ControlSourabh Sahu
 
Introduction to git and github
Introduction to git and githubIntroduction to git and github
Introduction to git and githubAderemi Dadepo
 
GITS Class #16: CI/CD (Continuous Integration & Continuous Deployment) with G...
GITS Class #16: CI/CD (Continuous Integration & Continuous Deployment) with G...GITS Class #16: CI/CD (Continuous Integration & Continuous Deployment) with G...
GITS Class #16: CI/CD (Continuous Integration & Continuous Deployment) with G...GITS Indonesia
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hubVenkat Malladi
 
Introducing GitLab (June 2018)
Introducing GitLab (June 2018)Introducing GitLab (June 2018)
Introducing GitLab (June 2018)Noa Harel
 
Introduction to GitHub Actions
Introduction to GitHub ActionsIntroduction to GitHub Actions
Introduction to GitHub ActionsBo-Yi Wu
 
Introduction to Gitlab | Gitlab 101 | Training Session
Introduction to Gitlab | Gitlab 101 | Training SessionIntroduction to Gitlab | Gitlab 101 | Training Session
Introduction to Gitlab | Gitlab 101 | Training SessionAnwarul Islam
 
Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners HubSpot
 
Gitlab ci, cncf.sk
Gitlab ci, cncf.skGitlab ci, cncf.sk
Gitlab ci, cncf.skJuraj Hantak
 
Git Lab Introduction
Git Lab IntroductionGit Lab Introduction
Git Lab IntroductionKrunal Doshi
 

Was ist angesagt? (20)

Introduction git
Introduction gitIntroduction git
Introduction git
 
Understanding GIT and Version Control
Understanding GIT and Version ControlUnderstanding GIT and Version Control
Understanding GIT and Version Control
 
Git basics
Git basicsGit basics
Git basics
 
Gitlab CI/CD
Gitlab CI/CDGitlab CI/CD
Gitlab CI/CD
 
Introduction to git and github
Introduction to git and githubIntroduction to git and github
Introduction to git and github
 
GITS Class #16: CI/CD (Continuous Integration & Continuous Deployment) with G...
GITS Class #16: CI/CD (Continuous Integration & Continuous Deployment) with G...GITS Class #16: CI/CD (Continuous Integration & Continuous Deployment) with G...
GITS Class #16: CI/CD (Continuous Integration & Continuous Deployment) with G...
 
Git 101 for Beginners
Git 101 for Beginners Git 101 for Beginners
Git 101 for Beginners
 
Github basics
Github basicsGithub basics
Github basics
 
Introducing GitLab
Introducing GitLabIntroducing GitLab
Introducing GitLab
 
Github
GithubGithub
Github
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hub
 
Git best practices workshop
Git best practices workshopGit best practices workshop
Git best practices workshop
 
Git & git hub
Git & git hubGit & git hub
Git & git hub
 
Introducing GitLab (June 2018)
Introducing GitLab (June 2018)Introducing GitLab (June 2018)
Introducing GitLab (June 2018)
 
Introduction to Git and Github
Introduction to Git and GithubIntroduction to Git and Github
Introduction to Git and Github
 
Introduction to GitHub Actions
Introduction to GitHub ActionsIntroduction to GitHub Actions
Introduction to GitHub Actions
 
Introduction to Gitlab | Gitlab 101 | Training Session
Introduction to Gitlab | Gitlab 101 | Training SessionIntroduction to Gitlab | Gitlab 101 | Training Session
Introduction to Gitlab | Gitlab 101 | Training Session
 
Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners
 
Gitlab ci, cncf.sk
Gitlab ci, cncf.skGitlab ci, cncf.sk
Gitlab ci, cncf.sk
 
Git Lab Introduction
Git Lab IntroductionGit Lab Introduction
Git Lab Introduction
 

Ähnlich wie Git and git hub basics

Introduction to git and Github
Introduction to git and GithubIntroduction to git and Github
Introduction to git and GithubWycliff1
 
Beginner Workshop for Student Developers - Tratech-presentation.pdf
Beginner Workshop for Student Developers - Tratech-presentation.pdfBeginner Workshop for Student Developers - Tratech-presentation.pdf
Beginner Workshop for Student Developers - Tratech-presentation.pdfGDSCKNUST
 
Bitbucket git-bamboo-jira
Bitbucket git-bamboo-jiraBitbucket git-bamboo-jira
Bitbucket git-bamboo-jiralenamattt
 
Git Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdfGit Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdfuzair
 
Setting up Git.pptx
Setting up Git.pptxSetting up Git.pptx
Setting up Git.pptxtapanvyas11
 
Contributing to github is for everyone
Contributing to github is for everyoneContributing to github is for everyone
Contributing to github is for everyoneMatt Heusser
 
Brief tutorial on Git
Brief tutorial on GitBrief tutorial on Git
Brief tutorial on Git聖文 鄭
 
Getting started With GIT
Getting started With GITGetting started With GIT
Getting started With GITGhadiAlGhosh
 
3DC Intro to Git Workshop
3DC Intro to Git Workshop3DC Intro to Git Workshop
3DC Intro to Git WorkshopBeckhamWee
 
Github 101 An Adventurer's Guide To Open Source
Github 101   An Adventurer's Guide To Open SourceGithub 101   An Adventurer's Guide To Open Source
Github 101 An Adventurer's Guide To Open SourcePrachitibhukan
 
Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...
Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...
Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...Daniel Katz
 
introductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdfintroductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdfBruceLee275640
 
Bitbucket Devops PPT.pptx
Bitbucket Devops PPT.pptxBitbucket Devops PPT.pptx
Bitbucket Devops PPT.pptxXIE2020Students
 
Github plugin setup in anypoint studio
Github plugin setup in anypoint studio Github plugin setup in anypoint studio
Github plugin setup in anypoint studio Sunil Komarapu
 

Ähnlich wie Git and git hub basics (20)

Introduction to git and Github
Introduction to git and GithubIntroduction to git and Github
Introduction to git and Github
 
Version control
Version controlVersion control
Version control
 
Beginner Workshop for Student Developers - Tratech-presentation.pdf
Beginner Workshop for Student Developers - Tratech-presentation.pdfBeginner Workshop for Student Developers - Tratech-presentation.pdf
Beginner Workshop for Student Developers - Tratech-presentation.pdf
 
Bitbucket git-bamboo-jira
Bitbucket git-bamboo-jiraBitbucket git-bamboo-jira
Bitbucket git-bamboo-jira
 
GitHub Basics - Derek Bable
GitHub Basics - Derek BableGitHub Basics - Derek Bable
GitHub Basics - Derek Bable
 
Git Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdfGit Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdf
 
Setting up Git.pptx
Setting up Git.pptxSetting up Git.pptx
Setting up Git.pptx
 
Contributing to github is for everyone
Contributing to github is for everyoneContributing to github is for everyone
Contributing to github is for everyone
 
Git hub visualstudiocode
Git hub visualstudiocodeGit hub visualstudiocode
Git hub visualstudiocode
 
Brief tutorial on Git
Brief tutorial on GitBrief tutorial on Git
Brief tutorial on Git
 
Git/GitHub
Git/GitHubGit/GitHub
Git/GitHub
 
Getting started With GIT
Getting started With GITGetting started With GIT
Getting started With GIT
 
3DC Intro to Git Workshop
3DC Intro to Git Workshop3DC Intro to Git Workshop
3DC Intro to Git Workshop
 
Github 101 An Adventurer's Guide To Open Source
Github 101   An Adventurer's Guide To Open SourceGithub 101   An Adventurer's Guide To Open Source
Github 101 An Adventurer's Guide To Open Source
 
Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...
Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...
Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...
 
introductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdfintroductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdf
 
Git step by step
Git step by stepGit step by step
Git step by step
 
Bitbucket Devops PPT.pptx
Bitbucket Devops PPT.pptxBitbucket Devops PPT.pptx
Bitbucket Devops PPT.pptx
 
Intro to Git, GitHub, and BitBucket
Intro to Git, GitHub, and BitBucketIntro to Git, GitHub, and BitBucket
Intro to Git, GitHub, and BitBucket
 
Github plugin setup in anypoint studio
Github plugin setup in anypoint studio Github plugin setup in anypoint studio
Github plugin setup in anypoint studio
 

Kürzlich hochgeladen

4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptxmary850239
 
4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptx4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptxmary850239
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxkarenfajardo43
 
ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6Vanessa Camilleri
 
CHEST Proprioceptive neuromuscular facilitation.pptx
CHEST Proprioceptive neuromuscular facilitation.pptxCHEST Proprioceptive neuromuscular facilitation.pptx
CHEST Proprioceptive neuromuscular facilitation.pptxAneriPatwari
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...DhatriParmar
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfPrerana Jadhav
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQuiz Club NITW
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Association for Project Management
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxDIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxMichelleTuguinay1
 
How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17Celine George
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDhatriParmar
 
ARTERIAL BLOOD GAS ANALYSIS........pptx
ARTERIAL BLOOD  GAS ANALYSIS........pptxARTERIAL BLOOD  GAS ANALYSIS........pptx
ARTERIAL BLOOD GAS ANALYSIS........pptxAneriPatwari
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Developmentchesterberbo7
 

Kürzlich hochgeladen (20)

4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx
 
4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptx4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptx
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
 
Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"
 
ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6
 
CHEST Proprioceptive neuromuscular facilitation.pptx
CHEST Proprioceptive neuromuscular facilitation.pptxCHEST Proprioceptive neuromuscular facilitation.pptx
CHEST Proprioceptive neuromuscular facilitation.pptx
 
prashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Professionprashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Profession
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdf
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxDIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
 
How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
 
ARTERIAL BLOOD GAS ANALYSIS........pptx
ARTERIAL BLOOD  GAS ANALYSIS........pptxARTERIAL BLOOD  GAS ANALYSIS........pptx
ARTERIAL BLOOD GAS ANALYSIS........pptx
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Development
 

Git and git hub basics

  • 1. GIT & GitHub Basics Pro Stack Academy www.prostackacademy.com
  • 2. What is Git? Git is a distributed version control system, meaning your local copy of code is a complete version control repository.
  • 3. Github GitHub is a Git repository hosting service, but it adds many of its own features. While Git is a command line tool, GitHub provides a Web- based graphical interface. It also provides access control and several collaboration features, such as a wikis and basic task management tools for every project.
  • 4. 1. Git & Github Architecture
  • 5. 2. Git & Github Architecture
  • 6. 3. Git & Github Architecture
  • 7. Gitbucket GitHub is an open source hosting services. This provides free repositories but for utilizing all features, the user might have to buy the premium package.
  • 8. GitLab GitLab is an open source of self-hosting services. It is free for every community of coders.
  • 9. How to Install the git Here are the steps to follow to install Git on Windows: 1. Download the executable Git file from git-scm.com/downloads 2. Run the installation file with Administrator rights 3. Choose an appropriate installation location such as C:_toolsgit 4. Install the default components, including Git GUI Here and Git Bash Here 5. Choose your preferred Git default editor. We recommend Notepad++. 6. Allow Git to be added to the Windows PATH 7. Accept the default line ending conversion for Unix and Windows compatibility 8. Chose the extra option to enable system caching 9. Click Finish to complete the install. 10. Choose to open a Git Bash shell and start using Git!
  • 10. 1. Images for how to install the git
  • 11. 2. Images for how to install the git
  • 12. 3. Images for how to install the git
  • 13. 4. Images for how to install the git
  • 14. How to create github account •Some steps to be followed: •Go to https://github.com/join in a web browser. You can use any web browser on your computer, phone, or tablet to join.Some add blockers, including uBlock Origin, prevent GitHub's verification CAPTCHA puzzle from appearing. For best results, disable your web browser's add blocker when signing up for GitHub. •Enter your personal details. In addition to creating a username and entering an email address, you'll also have to create a password. Your password must be at least 15 characters in length or at least 8 characters with at least one number and lowercase letter.[1] •Click the green Create an account button. It's below the form. •Complete the CAPTCHA puzzle. The instructions vary by puzzle, so just follow the on-screen instructions to confirm that you are a human. •Click the Choose button for your desired plan. One you select a plan, GitHub will send an email confirmation message to the address you entered. The plan options are:[2] •Click the Verify email address button in the message from GitHub. This confirms your email address and returns you to the sign-up process. •Review your plan selection and click Continue. You can also choose whether you want to receive updates from GitHub via email by checking or unchecking the "Send me updates" box. •Select your preferences and click Submit. GitHub displays a quick survey that can help you tailor your experience to match what you're looking for. Once you make your selection, you'll be taken to a screen that allows you to set up your first repository.
  • 15. Image for how to create the github account
  • 16. How to create github repository Steps to Create a repository: 1. In the upper-right corner of any page, use the drop-down menu, and select New repository. 2. Type a short, memorable name for your repository. ... 3. Optionally, add a description of your repository. ... 4. Choose to make the repository either public or private. ... 5. Select Initialize this repository with a README. 6. Click Create repository.
  • 17. 1. Image for how to create github repository
  • 18. 2. Image for how to create github repository
  • 19. How to install the Visual Studio Code 1) Navigate to download link https://code.visualstudio.com/download You can choose the custom 32 bit or 64 bit if you are aware of which architecture system you are using. If you are not sure then you can simply click on windows Icon. This would download the VS Code installer to your machine. 2) Start VS-Code Installation Process: Navigate to the folder where VS-Code Installer is downloaded and double click on it to kick start the installation process. Once the installation is started, click Next on the welcome screen. 3) Accept the License Agreement: Go through the license agreement, Click on I accept the agreement and click Next. 4) Choose Installation Directory: By default, VS-Code is installed under C:users{username}AppDataLocalProgramsMicrosoft VS Code, but this default location of installation can be changed by clicking on Browse. 5) Choose Start Menu Folder: By Default, the program’s shortcut will be placed in the Visual Studio Code folder but this can be changed from this window. Once done, click on Next.
  • 20. How to install the Visual Studio Code 6) Choose Additional Options: Various options to choose: •Create a desktop icon: Upon choosing this option desktop shortcut will be created, it will be easy for you to launch VS Code next time. •Add “Open with code” action to Windows Explorer file context menu: This would allow an option to open a file in VS Code on performing the right click on the file. •Add Open with code action to Windows Explorer folder context menu: This would allow an option to open a folder in VS Code on performing the right click on the folder. •Register Code as an editor for supported file types: File supported by VS Code will be automatically opened in Visual Studio Code editor. •Add to PATH (available after restart): Visual Studio Code installed directory path will be added to an environment variable automatically but after the restart. •Once you choose options that you need, click on Next to continue the installation:
  • 21. How to install the Visual Studio Code 6) Review selected options: Ready to Install screen will show you things which you chose from the previous screen, you can review. Change anything if necessary, else click on Install to begin the installation. 7) Launch the Visual Studio Code: Wait for the installation to complete and at the end final window will be displayed. Select Launch VS Code and click on FInish. 8) Editor Screen Opens: The VS Code IDE is launched and the editor is now open.
  • 22. 1. Images for how to install the visual studio code
  • 23. 2. Images for how to install the visual studio code
  • 24. Git Commands 1. git init = git init 2. git clone = git clone /path/to/repository 3. git clone username@host:/path/to/repository 4. git push = git push -u origin master/git push -u origin master 5. git pull = git pull origin master 6. git remote = git remote and origin TestGit 7. git commit = git commit -m "first commit" test.txt/git commit -m "second commit" test.txt 8. git add = git add test.txt 9. git config --global user.name "Sam Smith"git config -- global user.email sam@example.com 10. Status = git status
  • 25. Github Interview Questions 1. What is the command you can use to write a commit message? The command that is used to write a commit message is “git commit –a”. The –a on the command line instructs git to commit the new content of all tracked files that have been modified. You can use “git add<file>” before git commit –a if new files need to be committed for the first time.
  • 26. Github Interview Questions 2. What is the difference between GIT and SVN? The difference between GIT and SVN is a) Git is less preferred for handling extremely large files or frequently changing binary files while SVN can handle multiple projects stored in the same repository. b) GIT does not support ‘commits’ across multiple branches or tags. Subversion allows the creation of folders at any location in the repository layout. c) Gits are unchangeable, while Subversion allows committers to treat a tag as a branch and to create multiple revisions under a tag root.
  • 27. Github Interview Questions 3. What are the advantages of using GIT? a) Data redundancy and replication b) High availability c) Only one.git directory per repository d) Superior disk utilization and network performance e) Collaboration friendly f) Any sort of projects can use GIT
  • 28. Github Interview Questions 4. What language is used in GIT? GIT is fast, and ‘C’ language makes this possible by reducing the overhead of runtimes associated with higher languages. 5. What is the function of ‘GIT PUSH’ in GIT? ‘GIT PUSH’ updates remote refs along with associated objects.
  • 29. Github Interview Questions 6. What is the function of git clone? The git clone command creates a copy of an existing Git repository. To get the copy of a central repository, ‘cloning’ is the most common way used by programmers.
  • 30. Github Interview Questions 7. What is the function of ‘git config’? The ‘git config’ command is a convenient way to set configuration options for your Git installation. Behaviour of a repository, user info, preferences etc. can be defined through this command.