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

Mais conteúdo relacionado

Mais procurados

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
 
Git and Github slides.pdf
Git and Github slides.pdfGit and Github slides.pdf
Git and Github slides.pdfTilton2
 
Fundamentals of DevOps and CI/CD
Fundamentals of DevOps and CI/CDFundamentals of DevOps and CI/CD
Fundamentals of DevOps and CI/CDBatyr Nuryyev
 
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
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hubJasleenSondhi
 
Starting with Git & GitHub
Starting with Git & GitHubStarting with Git & GitHub
Starting with Git & GitHubNicolás Tourné
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to GitLukas Fittl
 
Container based CI/CD on GitHub Actions
Container based CI/CD on GitHub ActionsContainer based CI/CD on GitHub Actions
Container based CI/CD on GitHub ActionsCasey Lee
 
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
 
Introduction to github slideshare
Introduction to github slideshareIntroduction to github slideshare
Introduction to github slideshareRakesh Sukumar
 
GIT presentation
GIT presentationGIT presentation
GIT presentationNaim Latifi
 
Introducing GitLab (June 2018)
Introducing GitLab (June 2018)Introducing GitLab (June 2018)
Introducing GitLab (June 2018)Noa Harel
 

Mais procurados (20)

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
 
Git and Github slides.pdf
Git and Github slides.pdfGit and Github slides.pdf
Git and Github slides.pdf
 
BitBucket presentation
BitBucket presentationBitBucket presentation
BitBucket presentation
 
Fundamentals of DevOps and CI/CD
Fundamentals of DevOps and CI/CDFundamentals of DevOps and CI/CD
Fundamentals of DevOps and CI/CD
 
Git basics
Git basicsGit basics
Git basics
 
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
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hub
 
Starting with Git & GitHub
Starting with Git & GitHubStarting with Git & GitHub
Starting with Git & GitHub
 
git and github
git and githubgit and github
git and github
 
Git basic
Git basicGit basic
Git basic
 
Bitbucket
BitbucketBitbucket
Bitbucket
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
CI CD Basics
CI CD BasicsCI CD Basics
CI CD Basics
 
Git & GitHub for Beginners
Git & GitHub for BeginnersGit & GitHub for Beginners
Git & GitHub for Beginners
 
Container based CI/CD on GitHub Actions
Container based CI/CD on GitHub ActionsContainer based CI/CD on GitHub Actions
Container based CI/CD on 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
 
Introduction to github slideshare
Introduction to github slideshareIntroduction to github slideshare
Introduction to github slideshare
 
GIT presentation
GIT presentationGIT presentation
GIT presentation
 
Git real slides
Git real slidesGit real slides
Git real slides
 
Introducing GitLab (June 2018)
Introducing GitLab (June 2018)Introducing GitLab (June 2018)
Introducing GitLab (June 2018)
 

Semelhante a 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 F K
 

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

Último

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 

Último (20)

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 

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.