SlideShare a Scribd company logo
DSA05
Day - 1
@2020 copyright KalKey training
VERSION
CONTROL
• Version control is a system that records changes to a file or set
of files over time so that you can recall specific versions later.
• If you are a graphic or web designer and want to keep every
version of an image or layout then it allows you to revert files
back to previous state revert the entire project back to
previous state, compare changes over time, see who last
modified something that might be causing a problem , who
introduce an issue and when, and more.
@2020 copyright KalKey training
Why Is Version
Control So
Important?
Keeping track of changes.
Ability to go back to a
previous working version.
Easily add someone else’s
work.
@2020 copyright KalKey training
TYPES OF VERSION CONTROL SYSTEM
Centralized
Version
Control System
Distributed
Version
Control System
@2020 copyright KalKey training
VCS
• Centralized Version control system
• Centralized version control means that the version history is stored in a central
server. When a developer wants to make changes to certain files, they pull files from
that central server to their own computer. After the developer has made changes,
they send the changed files back to the central server.
• Distributed Version control system
• Distributed VCS, everyone has a local copy of the entire work’s history This
means that it is not necessary to be online to change revisions or add changes to the
work.
• “Distributed” comes from the fact that there isn’t a central entity in charge of
the work’s history, so that anyone can sync with any other team member. This helps
avoid failure due to crash of the central versioning server.
@2020 copyright KalKey training
@2020 copyright KalKey training
@2020 copyright KalKey training
SVN
• SVN is a centralized version control system. ... Centralized version control means that the version history is
stored in a central server. When a developer wants to make changes to certain files, they pull files from
that central server to their own computer
@2020 copyright KalKey training
INTRODUCTION TO GIT
• Git is a distributed version-control system for tracking changes in source
code during software development.
• It is designed for coordinating work among programmers, but it can be
used to track changes in any set of files.
• Its goals include speed, data integrity and support for distributed, non-
linear workflows.
• Git is free and open-source software distributed under the terms of
the GNU General Public Licensee version 2.
@2020 copyright KalKey training
Installation Git on Windows
1. Download the git software from the following link.
https://git-scm.com/downloads
2. Now open the software, click next, and customize your
installation and finish it.
3. Check the git version from command prompt on your
system by executing the following command.
git --version // or you can type the same command by
opening git bash
4. Execute the below command for creating an empty Git
repository or reinitialize an existing one.
git init
@2020 copyright KalKey training
Installation Git on Linux
1. Install the git package by running the below command.
yum install git -y
3. Check the git version by executing the below command
from your linux instance.
git --version
4. Execute the below command for creating an empty Git
repository or reinitialize an existing one.
git init
5. Configure your Git username and email using the following
commands.
git config --global user.name “John”
git config --global user.email john.18@example.com
git config --list
@2020 copyright KalKey training
GIT - LIFE CYCLE
1
Clone the git
repository as a
working copy.
2
Modify the working
copy by adding/editing
files.
3
If necessary, also
update the working
copy by taking other
developer's changes.
4
Review the changes
before commit.
5
Commit changes. If
everything is fine, then
push the changes to
the repository.
6
After committing, if
something is wrong,
then correct the last
commit and push the
changes to the
repository.
@2020 copyright KalKey training
@2020 copyright KalKey training
GITHUB
• GitHub is a code hosting platform for collaboration and version control.
• GitHub lets you (and others) work together on projects.
• GitHub essentials are:
Repositories
Branches
Commits
Pull Requests
Git (the version control software GitHub is built on)
@2020 copyright KalKey training
Repository
• A GitHub repository can be used to store a development project.
• It can contain folders and any type of files (HTML, CSS, JavaScript, Documents, Data, Images).
• A GitHub repository should also include a license file and a README file about the project.
• A GitHub repository can also be used to store ideas, or any resources that you want to share.
@2020 copyright KalKey training
Branch
• A GitHub branch is used to work with different versions of a repository at the same time.
• By default a repository has a master branch (a production branch).
• Any other branch is a copy of the master branch (as it was at a point in time).
• New Branches are for bug fixes and feature work separate from the master branch. When changes are
ready, they can be merged into the master branch. If you make changes to the master branch while
working on a new branch, these updates can be pulled in.
Commits
• At GitHub, changes are called commits.
• Each commit (change) has a description explaining why a change was made.
@2020 copyright KalKey training
Pull Requests
• Pull Requests are the heart of GitHub collaboration.
• With a pull request you are proposing that your changes should be merged (pulled in) with the master.
@2020 copyright KalKey training
Open an account in GitHub
@2020 copyright KalKey training
To create a new repository
1. In the upper right corner, next to your avatar or identicon, click + and then select new
repository.
2. Name your repository hello-world1.
3. Write a short description.
4. Select Initialize this repository with a README.
@2020 copyright KalKey training
@2020 copyright KalKey training
To create a new branch
1. Go to your new repository hello-world.
2. Click the drop down at the top of the file list that says branch: master.
3. Type a branch name, INB-1, into the new branch text box.
4. Select the blue Create branch box or hit “Enter” on your keyboard.
@2020 copyright KalKey training
@2020 copyright KalKey training
Make and commit changes
• Click the readme.md file.
• Click the pencil icon in the upper right corner of the file view to edit.
• In the editor, write a bit about yourself.
• Write a commit message that describes your changes.
• Click Commit changes button.
• These changes will be made to just the README file on your INB-1 branch, so now this branch contains content that’s different from master.
@2020 copyright KalKey training
Open a Pull Request
• Nice edits! Now that you have changes in a branch off of master, you can open a pull request.
• Pull Requests are the heart of collaboration on GitHub. When you open a pull request, you’re proposing your changes and
requesting that someone review and pull in your contribution and merge them into their branch. Pull requests show diffs,
or differences, of the content from both branches. The changes, additions, and subtractions are shown in green and red.
• As soon as you make a commit, you can open a pull request and start a discussion, even before the code is finished.
• You can even open pull requests in your own repository and merge them yourself. It’s a great way to learn the GitHub
flow before working on larger projects.
• Open a Pull Request for changes to the README
• When you’re done with your message, click Create pull request!
@2020 copyright KalKey training
Merge your Pull Request
In this final step, it’s time to bring your changes together – merging your INB-1 branch into the
master branch.
1. Click the green Merge pull request button to merge the changes into master.
2. Click Confirm merge.
3. Go ahead and delete the branch, since its changes have been incorporated, with the Delete
branch button in the purple box.
@2020 copyright KalKey training
Ad

More Related Content

What's hot (20)

BitBucket presentation
BitBucket presentationBitBucket presentation
BitBucket presentation
Jonathan Lawerh
 
Using Git and BitBucket
Using Git and BitBucketUsing Git and BitBucket
Using Git and BitBucket
Medhat Dawoud
 
Bitbucket
BitbucketBitbucket
Bitbucket
Okba Mahdjoub
 
Git Pull Requests
Git Pull RequestsGit Pull Requests
Git Pull Requests
Callon Campbell
 
Git presentation
Git presentationGit presentation
Git presentation
Sai Kumar Satapathy
 
2015-ghci-presentation-git_gerritJenkins_final
2015-ghci-presentation-git_gerritJenkins_final2015-ghci-presentation-git_gerritJenkins_final
2015-ghci-presentation-git_gerritJenkins_final
Mythri P K
 
Git with bitbucket
Git with bitbucketGit with bitbucket
Git with bitbucket
Sumin Byeon
 
GitHub
GitHubGitHub
GitHub
ThomasLai27
 
Getting Started with GitHub
Getting Started with GitHubGetting Started with GitHub
Getting Started with GitHub
Michael Redlich
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hub
Naveen Pandey
 
Git theory
Git   theoryGit   theory
Git theory
hariprasad1035
 
Branch to branch by Photis Patriotis
Branch to branch by Photis PatriotisBranch to branch by Photis Patriotis
Branch to branch by Photis Patriotis
Prolific Interactive
 
Git & GitHub
Git & GitHubGit & GitHub
Git & GitHub
Cuong Ngo
 
Workshop on Git and GitHub
Workshop on Git and GitHubWorkshop on Git and GitHub
Workshop on Git and GitHub
DSCVSSUT
 
Difference between gitlab vs github vs bitbucket
Difference between gitlab vs github vs bitbucketDifference between gitlab vs github vs bitbucket
Difference between gitlab vs github vs bitbucket
Acodez IT Solutions
 
Introduction to git administration
Introduction to git administrationIntroduction to git administration
Introduction to git administration
Shawn Doyle
 
Git strategies for DevOps
Git strategies for DevOpsGit strategies for DevOps
Git strategies for DevOps
Ahmad Iqbal Ali
 
HacktoberFest-Git&GitHub
HacktoberFest-Git&GitHubHacktoberFest-Git&GitHub
HacktoberFest-Git&GitHub
GDSCIIITBbsr
 
Migrating to git
Migrating to gitMigrating to git
Migrating to git
Xpand IT
 
Git Series. Episode 2. Merge, Upstream Commands and Tags
Git Series. Episode 2. Merge, Upstream Commands and TagsGit Series. Episode 2. Merge, Upstream Commands and Tags
Git Series. Episode 2. Merge, Upstream Commands and Tags
Mikhail Melnik
 
Using Git and BitBucket
Using Git and BitBucketUsing Git and BitBucket
Using Git and BitBucket
Medhat Dawoud
 
2015-ghci-presentation-git_gerritJenkins_final
2015-ghci-presentation-git_gerritJenkins_final2015-ghci-presentation-git_gerritJenkins_final
2015-ghci-presentation-git_gerritJenkins_final
Mythri P K
 
Git with bitbucket
Git with bitbucketGit with bitbucket
Git with bitbucket
Sumin Byeon
 
Getting Started with GitHub
Getting Started with GitHubGetting Started with GitHub
Getting Started with GitHub
Michael Redlich
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hub
Naveen Pandey
 
Branch to branch by Photis Patriotis
Branch to branch by Photis PatriotisBranch to branch by Photis Patriotis
Branch to branch by Photis Patriotis
Prolific Interactive
 
Git & GitHub
Git & GitHubGit & GitHub
Git & GitHub
Cuong Ngo
 
Workshop on Git and GitHub
Workshop on Git and GitHubWorkshop on Git and GitHub
Workshop on Git and GitHub
DSCVSSUT
 
Difference between gitlab vs github vs bitbucket
Difference between gitlab vs github vs bitbucketDifference between gitlab vs github vs bitbucket
Difference between gitlab vs github vs bitbucket
Acodez IT Solutions
 
Introduction to git administration
Introduction to git administrationIntroduction to git administration
Introduction to git administration
Shawn Doyle
 
Git strategies for DevOps
Git strategies for DevOpsGit strategies for DevOps
Git strategies for DevOps
Ahmad Iqbal Ali
 
HacktoberFest-Git&GitHub
HacktoberFest-Git&GitHubHacktoberFest-Git&GitHub
HacktoberFest-Git&GitHub
GDSCIIITBbsr
 
Migrating to git
Migrating to gitMigrating to git
Migrating to git
Xpand IT
 
Git Series. Episode 2. Merge, Upstream Commands and Tags
Git Series. Episode 2. Merge, Upstream Commands and TagsGit Series. Episode 2. Merge, Upstream Commands and Tags
Git Series. Episode 2. Merge, Upstream Commands and Tags
Mikhail Melnik
 

Similar to Version control git day01 (20)

02-version control(DevOps Series)
02-version control(DevOps Series)02-version control(DevOps Series)
02-version control(DevOps Series)
Mohammed Shaban
 
Version control git day02
Version control   git day02Version control   git day02
Version control git day02
Gourav Varma
 
Understanding Github and Version Control System.pptx
Understanding Github and Version Control System.pptxUnderstanding Github and Version Control System.pptx
Understanding Github and Version Control System.pptx
AdebisiJoe
 
Get Git with It! A Developer's Workshop.pptx
Get Git with It! A Developer's Workshop.pptxGet Git with It! A Developer's Workshop.pptx
Get Git with It! A Developer's Workshop.pptx
Google Developer Students Clubs - CTU
 
Version Control System-git status,git add,git commit,git log.pptx
Version Control System-git status,git add,git commit,git log.pptxVersion Control System-git status,git add,git commit,git log.pptx
Version Control System-git status,git add,git commit,git log.pptx
ChayapathiAR
 
Introduction to github slideshare
Introduction to github slideshareIntroduction to github slideshare
Introduction to github slideshare
Rakesh Sukumar
 
Git Session 2K23.pptx
Git Session 2K23.pptxGit Session 2K23.pptx
Git Session 2K23.pptx
Eshaan35
 
Github
GithubGithub
Github
MeetPatel710
 
Version control with git
Version control with gitVersion control with git
Version control with git
Purav Gandhi
 
Mini-training: Let’s Git It!
Mini-training: Let’s Git It!Mini-training: Let’s Git It!
Mini-training: Let’s Git It!
Betclic Everest Group Tech Team
 
Git
GitGit
Git
Amjad Mahfoud
 
Git & GitLab
Git & GitLabGit & GitLab
Git & GitLab
Gaurav Wable
 
Questions and Answers git and github.pdf
Questions and Answers git and github.pdfQuestions and Answers git and github.pdf
Questions and Answers git and github.pdf
ramu56565454
 
Version control
Version controlVersion control
Version control
Ghufran Ataie
 
GIT_Overview.
GIT_Overview.GIT_Overview.
GIT_Overview.
Mithilesh Singh
 
Advance workshop on git
Advance workshop on gitAdvance workshop on git
Advance workshop on git
Himanshu Agrawal
 
[2015/2016] Collaborative software development with Git
[2015/2016] Collaborative software development with Git[2015/2016] Collaborative software development with Git
[2015/2016] Collaborative software development with Git
Ivano Malavolta
 
Git tech
Git techGit tech
Git tech
Taj Nehme
 
Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1
Omar Fathy
 
Git 101
Git 101Git 101
Git 101
jayrparro
 
02-version control(DevOps Series)
02-version control(DevOps Series)02-version control(DevOps Series)
02-version control(DevOps Series)
Mohammed Shaban
 
Version control git day02
Version control   git day02Version control   git day02
Version control git day02
Gourav Varma
 
Understanding Github and Version Control System.pptx
Understanding Github and Version Control System.pptxUnderstanding Github and Version Control System.pptx
Understanding Github and Version Control System.pptx
AdebisiJoe
 
Version Control System-git status,git add,git commit,git log.pptx
Version Control System-git status,git add,git commit,git log.pptxVersion Control System-git status,git add,git commit,git log.pptx
Version Control System-git status,git add,git commit,git log.pptx
ChayapathiAR
 
Introduction to github slideshare
Introduction to github slideshareIntroduction to github slideshare
Introduction to github slideshare
Rakesh Sukumar
 
Git Session 2K23.pptx
Git Session 2K23.pptxGit Session 2K23.pptx
Git Session 2K23.pptx
Eshaan35
 
Version control with git
Version control with gitVersion control with git
Version control with git
Purav Gandhi
 
Questions and Answers git and github.pdf
Questions and Answers git and github.pdfQuestions and Answers git and github.pdf
Questions and Answers git and github.pdf
ramu56565454
 
[2015/2016] Collaborative software development with Git
[2015/2016] Collaborative software development with Git[2015/2016] Collaborative software development with Git
[2015/2016] Collaborative software development with Git
Ivano Malavolta
 
Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1
Omar Fathy
 
Ad

More from Gourav Varma (20)

Jenkins introduction
Jenkins introductionJenkins introduction
Jenkins introduction
Gourav Varma
 
Docker introduction (1)
Docker introduction (1)Docker introduction (1)
Docker introduction (1)
Gourav Varma
 
Aws day 4
Aws day 4Aws day 4
Aws day 4
Gourav Varma
 
Aws day 3
Aws day 3Aws day 3
Aws day 3
Gourav Varma
 
Aws day 2
Aws day 2Aws day 2
Aws day 2
Gourav Varma
 
Ansible day 4
Ansible day 4Ansible day 4
Ansible day 4
Gourav Varma
 
Ansible day 3
Ansible day 3Ansible day 3
Ansible day 3
Gourav Varma
 
Adnible day 2.ppt
Adnible day   2.pptAdnible day   2.ppt
Adnible day 2.ppt
Gourav Varma
 
Ansible day 1.ppt
Ansible day 1.pptAnsible day 1.ppt
Ansible day 1.ppt
Gourav Varma
 
Version control git day01
Version control   git day01Version control   git day01
Version control git day01
Gourav Varma
 
Dev ops
Dev opsDev ops
Dev ops
Gourav Varma
 
Shell programming 2
Shell programming 2Shell programming 2
Shell programming 2
Gourav Varma
 
Introduction to linux
Introduction to linuxIntroduction to linux
Introduction to linux
Gourav Varma
 
Final terraform
Final terraformFinal terraform
Final terraform
Gourav Varma
 
Docker swarm
Docker swarmDocker swarm
Docker swarm
Gourav Varma
 
Docker advance topic (2)
Docker advance topic (2)Docker advance topic (2)
Docker advance topic (2)
Gourav Varma
 
Docker introduction (1)
Docker introduction (1)Docker introduction (1)
Docker introduction (1)
Gourav Varma
 
Docker introduction (1)
Docker introduction (1)Docker introduction (1)
Docker introduction (1)
Gourav Varma
 
Docker introduction (1)
Docker introduction (1)Docker introduction (1)
Docker introduction (1)
Gourav Varma
 
Introduction of devops
Introduction of devopsIntroduction of devops
Introduction of devops
Gourav Varma
 
Ad

Recently uploaded (20)

Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Library Association of Ireland
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 AccountingHow to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
Celine George
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Celine George
 
Social Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy StudentsSocial Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy Students
DrNidhiAgarwal
 
Sinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_NameSinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_Name
keshanf79
 
To study Digestive system of insect.pptx
To study Digestive system of insect.pptxTo study Digestive system of insect.pptx
To study Digestive system of insect.pptx
Arshad Shaikh
 
Understanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s GuideUnderstanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s Guide
GS Virdi
 
To study the nervous system of insect.pptx
To study the nervous system of insect.pptxTo study the nervous system of insect.pptx
To study the nervous system of insect.pptx
Arshad Shaikh
 
Geography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjectsGeography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjects
ProfDrShaikhImran
 
Metamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative JourneyMetamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative Journey
Arshad Shaikh
 
SPRING FESTIVITIES - UK AND USA -
SPRING FESTIVITIES - UK AND USA            -SPRING FESTIVITIES - UK AND USA            -
SPRING FESTIVITIES - UK AND USA -
Colégio Santa Teresinha
 
Odoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo SlidesOdoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo Slides
Celine George
 
Introduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe EngineeringIntroduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe Engineering
Damian T. Gordon
 
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar RabbiPresentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Md Shaifullar Rabbi
 
How to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 WebsiteHow to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 Website
Celine George
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx
contactwilliamm2546
 
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Library Association of Ireland
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 AccountingHow to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
Celine George
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Celine George
 
Social Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy StudentsSocial Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy Students
DrNidhiAgarwal
 
Sinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_NameSinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_Name
keshanf79
 
To study Digestive system of insect.pptx
To study Digestive system of insect.pptxTo study Digestive system of insect.pptx
To study Digestive system of insect.pptx
Arshad Shaikh
 
Understanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s GuideUnderstanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s Guide
GS Virdi
 
To study the nervous system of insect.pptx
To study the nervous system of insect.pptxTo study the nervous system of insect.pptx
To study the nervous system of insect.pptx
Arshad Shaikh
 
Geography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjectsGeography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjects
ProfDrShaikhImran
 
Metamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative JourneyMetamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative Journey
Arshad Shaikh
 
Odoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo SlidesOdoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo Slides
Celine George
 
Introduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe EngineeringIntroduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe Engineering
Damian T. Gordon
 
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar RabbiPresentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Md Shaifullar Rabbi
 
How to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 WebsiteHow to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 Website
Celine George
 
2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx
contactwilliamm2546
 

Version control git day01

  • 1. DSA05 Day - 1 @2020 copyright KalKey training
  • 2. VERSION CONTROL • Version control is a system that records changes to a file or set of files over time so that you can recall specific versions later. • If you are a graphic or web designer and want to keep every version of an image or layout then it allows you to revert files back to previous state revert the entire project back to previous state, compare changes over time, see who last modified something that might be causing a problem , who introduce an issue and when, and more. @2020 copyright KalKey training
  • 3. Why Is Version Control So Important? Keeping track of changes. Ability to go back to a previous working version. Easily add someone else’s work. @2020 copyright KalKey training
  • 4. TYPES OF VERSION CONTROL SYSTEM Centralized Version Control System Distributed Version Control System @2020 copyright KalKey training
  • 5. VCS • Centralized Version control system • Centralized version control means that the version history is stored in a central server. When a developer wants to make changes to certain files, they pull files from that central server to their own computer. After the developer has made changes, they send the changed files back to the central server. • Distributed Version control system • Distributed VCS, everyone has a local copy of the entire work’s history This means that it is not necessary to be online to change revisions or add changes to the work. • “Distributed” comes from the fact that there isn’t a central entity in charge of the work’s history, so that anyone can sync with any other team member. This helps avoid failure due to crash of the central versioning server. @2020 copyright KalKey training
  • 8. SVN • SVN is a centralized version control system. ... Centralized version control means that the version history is stored in a central server. When a developer wants to make changes to certain files, they pull files from that central server to their own computer @2020 copyright KalKey training
  • 9. INTRODUCTION TO GIT • Git is a distributed version-control system for tracking changes in source code during software development. • It is designed for coordinating work among programmers, but it can be used to track changes in any set of files. • Its goals include speed, data integrity and support for distributed, non- linear workflows. • Git is free and open-source software distributed under the terms of the GNU General Public Licensee version 2. @2020 copyright KalKey training
  • 10. Installation Git on Windows 1. Download the git software from the following link. https://git-scm.com/downloads 2. Now open the software, click next, and customize your installation and finish it. 3. Check the git version from command prompt on your system by executing the following command. git --version // or you can type the same command by opening git bash 4. Execute the below command for creating an empty Git repository or reinitialize an existing one. git init @2020 copyright KalKey training
  • 11. Installation Git on Linux 1. Install the git package by running the below command. yum install git -y 3. Check the git version by executing the below command from your linux instance. git --version 4. Execute the below command for creating an empty Git repository or reinitialize an existing one. git init 5. Configure your Git username and email using the following commands. git config --global user.name “John” git config --global user.email [email protected] git config --list @2020 copyright KalKey training
  • 12. GIT - LIFE CYCLE 1 Clone the git repository as a working copy. 2 Modify the working copy by adding/editing files. 3 If necessary, also update the working copy by taking other developer's changes. 4 Review the changes before commit. 5 Commit changes. If everything is fine, then push the changes to the repository. 6 After committing, if something is wrong, then correct the last commit and push the changes to the repository. @2020 copyright KalKey training
  • 14. GITHUB • GitHub is a code hosting platform for collaboration and version control. • GitHub lets you (and others) work together on projects. • GitHub essentials are: Repositories Branches Commits Pull Requests Git (the version control software GitHub is built on) @2020 copyright KalKey training
  • 15. Repository • A GitHub repository can be used to store a development project. • It can contain folders and any type of files (HTML, CSS, JavaScript, Documents, Data, Images). • A GitHub repository should also include a license file and a README file about the project. • A GitHub repository can also be used to store ideas, or any resources that you want to share. @2020 copyright KalKey training
  • 16. Branch • A GitHub branch is used to work with different versions of a repository at the same time. • By default a repository has a master branch (a production branch). • Any other branch is a copy of the master branch (as it was at a point in time). • New Branches are for bug fixes and feature work separate from the master branch. When changes are ready, they can be merged into the master branch. If you make changes to the master branch while working on a new branch, these updates can be pulled in. Commits • At GitHub, changes are called commits. • Each commit (change) has a description explaining why a change was made. @2020 copyright KalKey training
  • 17. Pull Requests • Pull Requests are the heart of GitHub collaboration. • With a pull request you are proposing that your changes should be merged (pulled in) with the master. @2020 copyright KalKey training
  • 18. Open an account in GitHub @2020 copyright KalKey training
  • 19. To create a new repository 1. In the upper right corner, next to your avatar or identicon, click + and then select new repository. 2. Name your repository hello-world1. 3. Write a short description. 4. Select Initialize this repository with a README. @2020 copyright KalKey training
  • 21. To create a new branch 1. Go to your new repository hello-world. 2. Click the drop down at the top of the file list that says branch: master. 3. Type a branch name, INB-1, into the new branch text box. 4. Select the blue Create branch box or hit “Enter” on your keyboard. @2020 copyright KalKey training
  • 23. Make and commit changes • Click the readme.md file. • Click the pencil icon in the upper right corner of the file view to edit. • In the editor, write a bit about yourself. • Write a commit message that describes your changes. • Click Commit changes button. • These changes will be made to just the README file on your INB-1 branch, so now this branch contains content that’s different from master. @2020 copyright KalKey training
  • 24. Open a Pull Request • Nice edits! Now that you have changes in a branch off of master, you can open a pull request. • Pull Requests are the heart of collaboration on GitHub. When you open a pull request, you’re proposing your changes and requesting that someone review and pull in your contribution and merge them into their branch. Pull requests show diffs, or differences, of the content from both branches. The changes, additions, and subtractions are shown in green and red. • As soon as you make a commit, you can open a pull request and start a discussion, even before the code is finished. • You can even open pull requests in your own repository and merge them yourself. It’s a great way to learn the GitHub flow before working on larger projects. • Open a Pull Request for changes to the README • When you’re done with your message, click Create pull request! @2020 copyright KalKey training
  • 25. Merge your Pull Request In this final step, it’s time to bring your changes together – merging your INB-1 branch into the master branch. 1. Click the green Merge pull request button to merge the changes into master. 2. Click Confirm merge. 3. Go ahead and delete the branch, since its changes have been incorporated, with the Delete branch button in the purple box. @2020 copyright KalKey training