SlideShare une entreprise Scribd logo
1  sur  16
Github
Basic of Github
Github
Github is a web-based version control tool which internally makes use
of Git technology. It is a free and open source distributed version
control system designed to handle everything from small to very large
projects with speed and efficiency. It offers unlimited public repos.
GitHub is used by individuals and enterprises to host code, collaborate
on documentation and track issues.
Github
What git do??
● Version control software - while yo coding you can save each
little time you want to change
● Open source
● Download - git-scm.com
Github
What github do??
● Collaboration website
● Host Git Repository
Github
Download & Install
1. Git may already be installed. To find out, open a terminal and
enter git --version
Github
Download & Install
1. Download the latest Git for Mac installer.
2. Follow the prompts to install Git.
3. Open a terminal and verify the installation was successful by
typing git --version:
Github
Download & Install
4. Configure your Git username and email using the following
commands, replacing Emma's name with your own.
Github - Workflow
● Branching - create a replica without affecting Master
● Commit - making set of changes
● Pull request - to show other people help to share code
● Collaborate - get comments to make changes
● Merge - merge help to merge code with the master
Github - Workflow
For open source
● Fork - exact replica of repository on york account
● Why? - permission access
● How - create fork
- github flow
- open pull request
Github
What is ‘working locally’?
git clone is a Git command line utility which is used to target an
existing repository and create a clone, or copy of the target
repository. ... Cloning a local or remote repository.
Cloning a bare repository. Using shallow options to partially clone
repositories. Git URL syntax and supported protocols.
Github
Commands
git init - create a new local repository
git clone “httpS://github.com/usernam/rpositorye”- Check out a
repository, Create a working copy of a local repository:
git pull - bringing down the changes made by your partner
git branch- create a branch on local machine
git checkout- check that branch that we are on a specific branch
Github
Commands
git status - List the files you've changed and those you still need to
add or commit
git add - Add files, Add one or more files to staging (index)
git commit -m - Commit changes to head (but not yet to the remote
repository)
git commit -a - Commit any files you've added with git add, and also
commit any files you've changed since then
git push origin master - Send changes to the master branch of your
remote repository
Github
Commands
git remote add origin <server> - If you haven't connected your local
repository to a remote server, add the server to be able to push to it
git remote -v - List all currently configured remote repositories
git merge <branchname> - To merge a different branch into your
active branch
Github
What is commit???
40 character SHA-1 Hash
Include :-
Blobs
Metadata
Basically git commit "records changes to the repository" while git push
"updates remote refs along with associated objects".
Github
Working
Directory
Staging
Area
History
git add
git
commit
Commit Work!!
Github
How git merge work??

Contenu connexe

Tendances

Open Source Collaboration With Git And Git Hub
Open Source Collaboration With Git And Git HubOpen Source Collaboration With Git And Git Hub
Open Source Collaboration With Git And Git Hub
Nick Quaranto
 
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Simplilearn
 

Tendances (20)

HacktoberFest-Git&GitHub
HacktoberFest-Git&GitHubHacktoberFest-Git&GitHub
HacktoberFest-Git&GitHub
 
Introduction to GitHub
Introduction to GitHubIntroduction to GitHub
Introduction to GitHub
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Open Source Collaboration With Git And Git Hub
Open Source Collaboration With Git And Git HubOpen Source Collaboration With Git And Git Hub
Open Source Collaboration With Git And Git Hub
 
Git presentation
Git presentationGit presentation
Git presentation
 
Git Lab Introduction
Git Lab IntroductionGit Lab Introduction
Git Lab Introduction
 
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
Git and GitHub | Concept about Git and GitHub Process | Git Process overviewGit and GitHub | Concept about Git and GitHub Process | Git Process overview
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
 
Git
GitGit
Git
 
Up GitLab Presentation 2015
Up GitLab Presentation 2015Up GitLab Presentation 2015
Up GitLab Presentation 2015
 
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 slideshare
Introduction to github slideshareIntroduction to github slideshare
Introduction to github slideshare
 
Git and Github Session
Git and Github SessionGit and Github Session
Git and Github Session
 
Intro to Git & GitHub
Intro to Git & GitHubIntro to Git & GitHub
Intro to Git & GitHub
 
Introduction to git and github
Introduction to git and githubIntroduction to git and github
Introduction to git and github
 
Git
GitGit
Git
 
Git and GitHub workflows
Git and GitHub workflowsGit and GitHub workflows
Git and GitHub workflows
 
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
 
Git Tricks — git utilities that make life git easier
Git Tricks — git utilities that make life git easierGit Tricks — git utilities that make life git easier
Git Tricks — git utilities that make life git easier
 
A prentation on github
A prentation on githubA prentation on github
A prentation on github
 
Git and git flow
Git and git flowGit and git flow
Git and git flow
 

Similaire à Git & Github

introductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdfintroductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdf
BruceLee275640
 

Similaire à Git & Github (20)

Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hub
 
GIT By Sivakrishna
GIT By SivakrishnaGIT By Sivakrishna
GIT By Sivakrishna
 
Git & GitLab
Git & GitLabGit & GitLab
Git & GitLab
 
Version control
Version controlVersion control
Version control
 
Git and Github.pptx
Git and Github.pptxGit and Github.pptx
Git and Github.pptx
 
git github PPT_GDSCIIITK.pptx
git github PPT_GDSCIIITK.pptxgit github PPT_GDSCIIITK.pptx
git github PPT_GDSCIIITK.pptx
 
Git installation and configuration
Git installation and configurationGit installation and configuration
Git installation and configuration
 
14 oct Git & GitHub.pptx
14 oct Git & GitHub.pptx14 oct Git & GitHub.pptx
14 oct Git & GitHub.pptx
 
Mini-training: Let’s Git It!
Mini-training: Let’s Git It!Mini-training: Let’s Git It!
Mini-training: Let’s Git It!
 
Brief tutorial on Git
Brief tutorial on GitBrief tutorial on Git
Brief tutorial on Git
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITM
 
Extra bit with git
Extra bit with gitExtra bit with git
Extra bit with git
 
Setting up Git.pptx
Setting up Git.pptxSetting up Git.pptx
Setting up Git.pptx
 
Git Basics
Git BasicsGit Basics
Git Basics
 
introductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdfintroductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdf
 
Git
GitGit
Git
 
Github By Nyros Developer
Github By Nyros DeveloperGithub By Nyros Developer
Github By Nyros Developer
 
Let's Git this Party Started: An Introduction to Git and GitHub
Let's Git this Party Started: An Introduction to Git and GitHubLet's Git this Party Started: An Introduction to Git and GitHub
Let's Git this Party Started: An Introduction to Git and GitHub
 
Git github
Git githubGit github
Git github
 
Introduction to git & GitHub
Introduction to git & GitHubIntroduction to git & GitHub
Introduction to git & GitHub
 

Plus de Aman Lalpuria (6)

SWIFT - Clearing and Settlement
SWIFT - Clearing and Settlement SWIFT - Clearing and Settlement
SWIFT - Clearing and Settlement
 
Functors, applicatives &amp; monads
Functors, applicatives &amp; monadsFunctors, applicatives &amp; monads
Functors, applicatives &amp; monads
 
iPython
iPythoniPython
iPython
 
Sql
SqlSql
Sql
 
Sql basics
Sql basicsSql basics
Sql basics
 
Payment
PaymentPayment
Payment
 

Dernier

BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
SoniaTolstoy
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
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
kauryashika82
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 

Dernier (20)

Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
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
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
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
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 

Git & Github

  • 2. Github Github is a web-based version control tool which internally makes use of Git technology. It is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. It offers unlimited public repos. GitHub is used by individuals and enterprises to host code, collaborate on documentation and track issues.
  • 3. Github What git do?? ● Version control software - while yo coding you can save each little time you want to change ● Open source ● Download - git-scm.com
  • 4. Github What github do?? ● Collaboration website ● Host Git Repository
  • 5. Github Download & Install 1. Git may already be installed. To find out, open a terminal and enter git --version
  • 6. Github Download & Install 1. Download the latest Git for Mac installer. 2. Follow the prompts to install Git. 3. Open a terminal and verify the installation was successful by typing git --version:
  • 7. Github Download & Install 4. Configure your Git username and email using the following commands, replacing Emma's name with your own.
  • 8. Github - Workflow ● Branching - create a replica without affecting Master ● Commit - making set of changes ● Pull request - to show other people help to share code ● Collaborate - get comments to make changes ● Merge - merge help to merge code with the master
  • 9. Github - Workflow For open source ● Fork - exact replica of repository on york account ● Why? - permission access ● How - create fork - github flow - open pull request
  • 10. Github What is ‘working locally’? git clone is a Git command line utility which is used to target an existing repository and create a clone, or copy of the target repository. ... Cloning a local or remote repository. Cloning a bare repository. Using shallow options to partially clone repositories. Git URL syntax and supported protocols.
  • 11. Github Commands git init - create a new local repository git clone “httpS://github.com/usernam/rpositorye”- Check out a repository, Create a working copy of a local repository: git pull - bringing down the changes made by your partner git branch- create a branch on local machine git checkout- check that branch that we are on a specific branch
  • 12. Github Commands git status - List the files you've changed and those you still need to add or commit git add - Add files, Add one or more files to staging (index) git commit -m - Commit changes to head (but not yet to the remote repository) git commit -a - Commit any files you've added with git add, and also commit any files you've changed since then git push origin master - Send changes to the master branch of your remote repository
  • 13. Github Commands git remote add origin <server> - If you haven't connected your local repository to a remote server, add the server to be able to push to it git remote -v - List all currently configured remote repositories git merge <branchname> - To merge a different branch into your active branch
  • 14. Github What is commit??? 40 character SHA-1 Hash Include :- Blobs Metadata Basically git commit "records changes to the repository" while git push "updates remote refs along with associated objects".