SlideShare a Scribd company logo
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.
Version control   git day02
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)
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 licence 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.
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.
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.
Open an account in GitHub
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.
Version control   git day02
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.
Version control   git day02
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.
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!
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.
BitBucket
• Bitbucket is a web-based version control repository hosting service owned by Atlassian, for source
code and development projects that use either Mercurial or Git revision control systems. Bitbucket
offers both commercial plans and free accounts.
Bitbucket is mostly used for code and code review. Bitbucket supports the following features:
• Pull requests with code review and comments
• Bitbucket Pipelines, a continous delivery service
• 2 step verification and required two step verification.
• Merge Checks
• Code search (Alpha)]
• Git Large File Storage (LFS)
• Documentation, including automatically rendered README files in a variety of Markdown-like file
formats
• Issue tracking
• Static sites hosted on Bitbucket Cloud: Static websites have the bitbucket.io domain in their URL
• Add-ons and integrations.
Open an account in BitBucket
Ad

More Related Content

What's hot (19)

Learning GitHub Part 4
Learning GitHub Part 4Learning GitHub Part 4
Learning GitHub Part 4
Lynn Langit
 
Learning GitHub Part 3
Learning GitHub Part 3Learning GitHub Part 3
Learning GitHub Part 3
Lynn Langit
 
Get your Git on GitHub
Get your Git on GitHubGet your Git on GitHub
Get your Git on GitHub
Runcy Oommen
 
Getting Started with GitHub
Getting Started with GitHubGetting Started with GitHub
Getting Started with GitHub
Michael Redlich
 
Learning GitHub Part 2
Learning GitHub Part 2Learning GitHub Part 2
Learning GitHub Part 2
Lynn Langit
 
Bitbucket
BitbucketBitbucket
Bitbucket
Okba Mahdjoub
 
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 and GitHub crash course
Git and GitHub crash courseGit and GitHub crash course
Git and GitHub crash course
Mireia Sangalo
 
Git for Excel files webinar
Git for Excel files webinarGit for Excel files webinar
Git for Excel files webinar
xlwings
 
Introduction to github slideshare
Introduction to github slideshareIntroduction to github slideshare
Introduction to github slideshare
Rakesh Sukumar
 
Facebook’s upstream approach to GlusterFS - David Hasson
Facebook’s upstream approach to GlusterFS  - David HassonFacebook’s upstream approach to GlusterFS  - David Hasson
Facebook’s upstream approach to GlusterFS - David Hasson
Gluster.org
 
Techoalien git
Techoalien gitTechoalien git
Techoalien git
Aditya Tiwari
 
GitHub Workflows for Technical Communication
GitHub Workflows for Technical CommunicationGitHub Workflows for Technical Communication
GitHub Workflows for Technical Communication
STC-Philadelphia Metro Chapter
 
Intro to Git & GitHub
Intro to Git & GitHubIntro to Git & GitHub
Intro to Git & GitHub
GoogleDevelopersStud
 
Git for Excel (Webinar)
Git for Excel (Webinar)Git for Excel (Webinar)
Git for Excel (Webinar)
xlwings
 
Git with bitbucket
Git with bitbucketGit with bitbucket
Git with bitbucket
Sumin Byeon
 
How we use Bitbucket to build Bitbucket
How we use Bitbucket to build BitbucketHow we use Bitbucket to build Bitbucket
How we use Bitbucket to build Bitbucket
Shunsuke (Sean) Osawa
 
Introduction to GitHub
Introduction to GitHubIntroduction to GitHub
Introduction to GitHub
Nishan Bose
 
Moka .Net Study Week 04
Moka .Net Study Week 04Moka .Net Study Week 04
Moka .Net Study Week 04
Aliencube Consulting
 
Learning GitHub Part 4
Learning GitHub Part 4Learning GitHub Part 4
Learning GitHub Part 4
Lynn Langit
 
Learning GitHub Part 3
Learning GitHub Part 3Learning GitHub Part 3
Learning GitHub Part 3
Lynn Langit
 
Get your Git on GitHub
Get your Git on GitHubGet your Git on GitHub
Get your Git on GitHub
Runcy Oommen
 
Getting Started with GitHub
Getting Started with GitHubGetting Started with GitHub
Getting Started with GitHub
Michael Redlich
 
Learning GitHub Part 2
Learning GitHub Part 2Learning GitHub Part 2
Learning GitHub Part 2
Lynn Langit
 
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 and GitHub crash course
Git and GitHub crash courseGit and GitHub crash course
Git and GitHub crash course
Mireia Sangalo
 
Git for Excel files webinar
Git for Excel files webinarGit for Excel files webinar
Git for Excel files webinar
xlwings
 
Introduction to github slideshare
Introduction to github slideshareIntroduction to github slideshare
Introduction to github slideshare
Rakesh Sukumar
 
Facebook’s upstream approach to GlusterFS - David Hasson
Facebook’s upstream approach to GlusterFS  - David HassonFacebook’s upstream approach to GlusterFS  - David Hasson
Facebook’s upstream approach to GlusterFS - David Hasson
Gluster.org
 
Git for Excel (Webinar)
Git for Excel (Webinar)Git for Excel (Webinar)
Git for Excel (Webinar)
xlwings
 
Git with bitbucket
Git with bitbucketGit with bitbucket
Git with bitbucket
Sumin Byeon
 
How we use Bitbucket to build Bitbucket
How we use Bitbucket to build BitbucketHow we use Bitbucket to build Bitbucket
How we use Bitbucket to build Bitbucket
Shunsuke (Sean) Osawa
 
Introduction to GitHub
Introduction to GitHubIntroduction to GitHub
Introduction to GitHub
Nishan Bose
 

Similar to Version control git day02 (20)

Version control git day01
Version control   git day01Version control   git day01
Version control git day01
Gourav Varma
 
Using git hub for your code
Using git hub for your codeUsing git hub for your code
Using git hub for your code
Osama Mustafa
 
GDSC Git event 2023.pptx
GDSC Git event 2023.pptxGDSC Git event 2023.pptx
GDSC Git event 2023.pptx
fsxflyer789Productio
 
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
 
02-version control(DevOps Series)
02-version control(DevOps Series)02-version control(DevOps Series)
02-version control(DevOps Series)
Mohammed Shaban
 
Advance workshop on git
Advance workshop on gitAdvance workshop on git
Advance workshop on git
Himanshu Agrawal
 
A Tutorial for GitHub.pdf
A Tutorial for GitHub.pdfA Tutorial for GitHub.pdf
A Tutorial for GitHub.pdf
Amarnadh36
 
A Tutorial for GitHub.pdf
A Tutorial for GitHub.pdfA Tutorial for GitHub.pdf
A Tutorial for GitHub.pdf
badrfathallah2
 
Contributing to github is for everyone
Contributing to github is for everyoneContributing to github is for everyone
Contributing to github is for everyone
Matt Heusser
 
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
 
Git Session 2K23.pptx
Git Session 2K23.pptxGit Session 2K23.pptx
Git Session 2K23.pptx
Eshaan35
 
Git hub ppt presentation
Git hub ppt presentationGit hub ppt presentation
Git hub ppt presentation
AyanaRukasar
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hub
Venkat Malladi
 
Git
GitGit
Git
zafarfaizi
 
git.ppt
git.pptgit.ppt
git.ppt
ssuser10dcd71
 
Git and Github slides.pdf
Git and Github slides.pdfGit and Github slides.pdf
Git and Github slides.pdf
Tilton2
 
Git and Github workshop ppt slide by slide
Git and Github workshop ppt slide by slideGit and Github workshop ppt slide by slide
Git and Github workshop ppt slide by slide
RaghavendraVattikuti1
 
GitHub Basics - Derek Bable
GitHub Basics - Derek BableGitHub Basics - Derek Bable
GitHub Basics - Derek Bable
"FENG "GEORGE"" YU
 
Git Tutorials Git vs GitHub.pptx
Git Tutorials Git vs GitHub.pptxGit Tutorials Git vs GitHub.pptx
Git Tutorials Git vs GitHub.pptx
DevOps University
 
Git hub party-20151008
Git hub party-20151008Git hub party-20151008
Git hub party-20151008
Blanca Mancilla
 
Version control git day01
Version control   git day01Version control   git day01
Version control git day01
Gourav Varma
 
Using git hub for your code
Using git hub for your codeUsing git hub for your code
Using git hub for your code
Osama Mustafa
 
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
 
02-version control(DevOps Series)
02-version control(DevOps Series)02-version control(DevOps Series)
02-version control(DevOps Series)
Mohammed Shaban
 
A Tutorial for GitHub.pdf
A Tutorial for GitHub.pdfA Tutorial for GitHub.pdf
A Tutorial for GitHub.pdf
Amarnadh36
 
A Tutorial for GitHub.pdf
A Tutorial for GitHub.pdfA Tutorial for GitHub.pdf
A Tutorial for GitHub.pdf
badrfathallah2
 
Contributing to github is for everyone
Contributing to github is for everyoneContributing to github is for everyone
Contributing to github is for everyone
Matt Heusser
 
Git Session 2K23.pptx
Git Session 2K23.pptxGit Session 2K23.pptx
Git Session 2K23.pptx
Eshaan35
 
Git hub ppt presentation
Git hub ppt presentationGit hub ppt presentation
Git hub ppt presentation
AyanaRukasar
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hub
Venkat Malladi
 
Git and Github slides.pdf
Git and Github slides.pdfGit and Github slides.pdf
Git and Github slides.pdf
Tilton2
 
Git and Github workshop ppt slide by slide
Git and Github workshop ppt slide by slideGit and Github workshop ppt slide by slide
Git and Github workshop ppt slide by slide
RaghavendraVattikuti1
 
Git Tutorials Git vs GitHub.pptx
Git Tutorials Git vs GitHub.pptxGit Tutorials Git vs GitHub.pptx
Git Tutorials Git vs GitHub.pptx
DevOps University
 
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
 
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
 
Version control git day03
Version control   git day03Version control   git day03
Version control git day03
Gourav Varma
 
Version control git day02
Version control   git day02Version control   git day02
Version control git day02
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
 
Ad

Recently uploaded (20)

Salesforce_Architecture_Diagramming_Workshop (1).pptx
Salesforce_Architecture_Diagramming_Workshop (1).pptxSalesforce_Architecture_Diagramming_Workshop (1).pptx
Salesforce_Architecture_Diagramming_Workshop (1).pptx
reinbauwens1
 
EquariusAI analytics for business water risk
EquariusAI analytics for business water riskEquariusAI analytics for business water risk
EquariusAI analytics for business water risk
Peter Adriaens
 
intra-mart Accel series 2025 Spring updates-en.ppt
intra-mart Accel series 2025 Spring updates-en.pptintra-mart Accel series 2025 Spring updates-en.ppt
intra-mart Accel series 2025 Spring updates-en.ppt
NTTDATA INTRAMART
 
The Peter Cowley Entrepreneurship Event Master 30th.pdf
The Peter Cowley Entrepreneurship Event Master 30th.pdfThe Peter Cowley Entrepreneurship Event Master 30th.pdf
The Peter Cowley Entrepreneurship Event Master 30th.pdf
Richard Lucas
 
Kiran Flemish - A Dynamic Musician
Kiran  Flemish  -  A   Dynamic  MusicianKiran  Flemish  -  A   Dynamic  Musician
Kiran Flemish - A Dynamic Musician
Kiran Flemish
 
BeMetals_Presentation_May_2025 .pdf
BeMetals_Presentation_May_2025      .pdfBeMetals_Presentation_May_2025      .pdf
BeMetals_Presentation_May_2025 .pdf
DerekIwanaka2
 
Top 5 Mistakes to Avoid When Writing a Job Application
Top 5 Mistakes to Avoid When Writing a Job ApplicationTop 5 Mistakes to Avoid When Writing a Job Application
Top 5 Mistakes to Avoid When Writing a Job Application
Red Tape Busters
 
Solaris Resources Presentation - Corporate April 2025.pdf
Solaris Resources Presentation - Corporate April 2025.pdfSolaris Resources Presentation - Corporate April 2025.pdf
Solaris Resources Presentation - Corporate April 2025.pdf
pchambers2
 
www.visualmedia.com digital markiting (1).pptx
www.visualmedia.com digital markiting (1).pptxwww.visualmedia.com digital markiting (1).pptx
www.visualmedia.com digital markiting (1).pptx
Davinder Singh
 
NewBase 28 April 2025 Energy News issue - 1783 by Khaled Al Awadi_compressed...
NewBase 28 April 2025  Energy News issue - 1783 by Khaled Al Awadi_compressed...NewBase 28 April 2025  Energy News issue - 1783 by Khaled Al Awadi_compressed...
NewBase 28 April 2025 Energy News issue - 1783 by Khaled Al Awadi_compressed...
Khaled Al Awadi
 
Avoiding the China Tariffs: Save Costs & Stay Competitive
Avoiding the China Tariffs: Save Costs & Stay CompetitiveAvoiding the China Tariffs: Save Costs & Stay Competitive
Avoiding the China Tariffs: Save Costs & Stay Competitive
NovaLink
 
Brandon Flatley - A Skilled Musician
Brandon Flatley - A Skilled MusicianBrandon Flatley - A Skilled Musician
Brandon Flatley - A Skilled Musician
Brandon Flatley
 
Harnessing Hyper-Localisation: A New Era in Retail Strategy
Harnessing Hyper-Localisation: A New Era in Retail StrategyHarnessing Hyper-Localisation: A New Era in Retail Strategy
Harnessing Hyper-Localisation: A New Era in Retail Strategy
RUPAL AGARWAL
 
AlaskaSilver Corporate Presentation Apr 28 2025.pdf
AlaskaSilver Corporate Presentation Apr 28 2025.pdfAlaskaSilver Corporate Presentation Apr 28 2025.pdf
AlaskaSilver Corporate Presentation Apr 28 2025.pdf
Western Alaska Minerals Corp.
 
Cloud Stream Part II Mobile Hub V1 Hub Agency.pdf
Cloud Stream Part II Mobile Hub V1 Hub Agency.pdfCloud Stream Part II Mobile Hub V1 Hub Agency.pdf
Cloud Stream Part II Mobile Hub V1 Hub Agency.pdf
Brij Consulting, LLC
 
The Rise of Payroll Outsourcing in the UK: Key Statistics for 2025
The Rise of Payroll Outsourcing in the UK: Key Statistics for 2025The Rise of Payroll Outsourcing in the UK: Key Statistics for 2025
The Rise of Payroll Outsourcing in the UK: Key Statistics for 2025
QX Accounting Services Ltd
 
Strategic Enterprise Management - Unit I.pptx
Strategic Enterprise Management - Unit I.pptxStrategic Enterprise Management - Unit I.pptx
Strategic Enterprise Management - Unit I.pptx
PrekshyaRana
 
waterBeta white paper - 250202- two-column.docx
waterBeta white paper - 250202- two-column.docxwaterBeta white paper - 250202- two-column.docx
waterBeta white paper - 250202- two-column.docx
Peter Adriaens
 
Mexico Office Furniture Market Share, Size, Growth & Trends (2025-2034)
Mexico Office Furniture Market Share, Size, Growth & Trends (2025-2034)Mexico Office Furniture Market Share, Size, Growth & Trends (2025-2034)
Mexico Office Furniture Market Share, Size, Growth & Trends (2025-2034)
janewatson684
 
Accounting_Basics_Complete_Guide_By_CA_Suvidha_Chaplot (1).pdf
Accounting_Basics_Complete_Guide_By_CA_Suvidha_Chaplot (1).pdfAccounting_Basics_Complete_Guide_By_CA_Suvidha_Chaplot (1).pdf
Accounting_Basics_Complete_Guide_By_CA_Suvidha_Chaplot (1).pdf
CA Suvidha Chaplot
 
Salesforce_Architecture_Diagramming_Workshop (1).pptx
Salesforce_Architecture_Diagramming_Workshop (1).pptxSalesforce_Architecture_Diagramming_Workshop (1).pptx
Salesforce_Architecture_Diagramming_Workshop (1).pptx
reinbauwens1
 
EquariusAI analytics for business water risk
EquariusAI analytics for business water riskEquariusAI analytics for business water risk
EquariusAI analytics for business water risk
Peter Adriaens
 
intra-mart Accel series 2025 Spring updates-en.ppt
intra-mart Accel series 2025 Spring updates-en.pptintra-mart Accel series 2025 Spring updates-en.ppt
intra-mart Accel series 2025 Spring updates-en.ppt
NTTDATA INTRAMART
 
The Peter Cowley Entrepreneurship Event Master 30th.pdf
The Peter Cowley Entrepreneurship Event Master 30th.pdfThe Peter Cowley Entrepreneurship Event Master 30th.pdf
The Peter Cowley Entrepreneurship Event Master 30th.pdf
Richard Lucas
 
Kiran Flemish - A Dynamic Musician
Kiran  Flemish  -  A   Dynamic  MusicianKiran  Flemish  -  A   Dynamic  Musician
Kiran Flemish - A Dynamic Musician
Kiran Flemish
 
BeMetals_Presentation_May_2025 .pdf
BeMetals_Presentation_May_2025      .pdfBeMetals_Presentation_May_2025      .pdf
BeMetals_Presentation_May_2025 .pdf
DerekIwanaka2
 
Top 5 Mistakes to Avoid When Writing a Job Application
Top 5 Mistakes to Avoid When Writing a Job ApplicationTop 5 Mistakes to Avoid When Writing a Job Application
Top 5 Mistakes to Avoid When Writing a Job Application
Red Tape Busters
 
Solaris Resources Presentation - Corporate April 2025.pdf
Solaris Resources Presentation - Corporate April 2025.pdfSolaris Resources Presentation - Corporate April 2025.pdf
Solaris Resources Presentation - Corporate April 2025.pdf
pchambers2
 
www.visualmedia.com digital markiting (1).pptx
www.visualmedia.com digital markiting (1).pptxwww.visualmedia.com digital markiting (1).pptx
www.visualmedia.com digital markiting (1).pptx
Davinder Singh
 
NewBase 28 April 2025 Energy News issue - 1783 by Khaled Al Awadi_compressed...
NewBase 28 April 2025  Energy News issue - 1783 by Khaled Al Awadi_compressed...NewBase 28 April 2025  Energy News issue - 1783 by Khaled Al Awadi_compressed...
NewBase 28 April 2025 Energy News issue - 1783 by Khaled Al Awadi_compressed...
Khaled Al Awadi
 
Avoiding the China Tariffs: Save Costs & Stay Competitive
Avoiding the China Tariffs: Save Costs & Stay CompetitiveAvoiding the China Tariffs: Save Costs & Stay Competitive
Avoiding the China Tariffs: Save Costs & Stay Competitive
NovaLink
 
Brandon Flatley - A Skilled Musician
Brandon Flatley - A Skilled MusicianBrandon Flatley - A Skilled Musician
Brandon Flatley - A Skilled Musician
Brandon Flatley
 
Harnessing Hyper-Localisation: A New Era in Retail Strategy
Harnessing Hyper-Localisation: A New Era in Retail StrategyHarnessing Hyper-Localisation: A New Era in Retail Strategy
Harnessing Hyper-Localisation: A New Era in Retail Strategy
RUPAL AGARWAL
 
Cloud Stream Part II Mobile Hub V1 Hub Agency.pdf
Cloud Stream Part II Mobile Hub V1 Hub Agency.pdfCloud Stream Part II Mobile Hub V1 Hub Agency.pdf
Cloud Stream Part II Mobile Hub V1 Hub Agency.pdf
Brij Consulting, LLC
 
The Rise of Payroll Outsourcing in the UK: Key Statistics for 2025
The Rise of Payroll Outsourcing in the UK: Key Statistics for 2025The Rise of Payroll Outsourcing in the UK: Key Statistics for 2025
The Rise of Payroll Outsourcing in the UK: Key Statistics for 2025
QX Accounting Services Ltd
 
Strategic Enterprise Management - Unit I.pptx
Strategic Enterprise Management - Unit I.pptxStrategic Enterprise Management - Unit I.pptx
Strategic Enterprise Management - Unit I.pptx
PrekshyaRana
 
waterBeta white paper - 250202- two-column.docx
waterBeta white paper - 250202- two-column.docxwaterBeta white paper - 250202- two-column.docx
waterBeta white paper - 250202- two-column.docx
Peter Adriaens
 
Mexico Office Furniture Market Share, Size, Growth & Trends (2025-2034)
Mexico Office Furniture Market Share, Size, Growth & Trends (2025-2034)Mexico Office Furniture Market Share, Size, Growth & Trends (2025-2034)
Mexico Office Furniture Market Share, Size, Growth & Trends (2025-2034)
janewatson684
 
Accounting_Basics_Complete_Guide_By_CA_Suvidha_Chaplot (1).pdf
Accounting_Basics_Complete_Guide_By_CA_Suvidha_Chaplot (1).pdfAccounting_Basics_Complete_Guide_By_CA_Suvidha_Chaplot (1).pdf
Accounting_Basics_Complete_Guide_By_CA_Suvidha_Chaplot (1).pdf
CA Suvidha Chaplot
 

Version control git day02

  • 1. 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.
  • 3. 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)
  • 4. 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 licence 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.
  • 5. 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.
  • 6. 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.
  • 7. Open an account in GitHub
  • 8. 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.
  • 10. 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.
  • 12. 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.
  • 13. 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!
  • 14. 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.
  • 15. BitBucket • Bitbucket is a web-based version control repository hosting service owned by Atlassian, for source code and development projects that use either Mercurial or Git revision control systems. Bitbucket offers both commercial plans and free accounts. Bitbucket is mostly used for code and code review. Bitbucket supports the following features: • Pull requests with code review and comments • Bitbucket Pipelines, a continous delivery service • 2 step verification and required two step verification. • Merge Checks • Code search (Alpha)] • Git Large File Storage (LFS) • Documentation, including automatically rendered README files in a variety of Markdown-like file formats • Issue tracking • Static sites hosted on Bitbucket Cloud: Static websites have the bitbucket.io domain in their URL • Add-ons and integrations.
  • 16. Open an account in BitBucket