SlideShare una empresa de Scribd logo
1 de 46
Git Ninja Training
Ashok Kumar
Cloud Security Architect
BigApp
Software Development Process
DISCLAIMER
This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any
third party. © Copyright 2018 BigApp. All rights reserved
Every Tool Cover Part of Development Process
DISCLAIMER
This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any
third party. © Copyright 2018 BigApp. All rights reserved
Dev
DISCLAIMER
This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any third party. © Copyright
2018 BigApp. All rights reserved
CI/CD
DISCLAIMER
This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any third party. © Copyright
2018 BigApp. All rights reserved
GitLab
DISCLAIMER
This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any third party. © Copyright
2018 BigApp. All rights reserved
How do most people work today?
Intro
Git is a free and open source distributed version control system designed to
handle everything from small to very large projects with speed and efficiency.
GitLab Adoption
source:gitlab.com
Why GitLab
source:gitlab.com
DISCLAIMER
This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any third party. © Copyright
2018 BigApp. All rights reserved
GitLab Love Devops
source:gitlab.com
Auto Devops
Gitlab+Kubernetes
● Build
● Test
● Code Quality
● Dependency Scanning
● SAST(Static application security testing)
● DAST
● Deploy
● Performance Testing
● Monitoring
● License Management
A basic workflow
● Edit file
● Stage the changes
● Review your changes
● Commit the changes
● every clone is a backup
● work offline
DISCLAIMER
This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any
third party. © Copyright 2018 BigApp. All rights reserved
No Network Needed
● Performing a diff
● Viewing file history
● Committing changes
● Merging branches
● Obtaining other revisions of a file
● Switching branches
DISCLAIMER
This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any
third party. © Copyright 2018 BigApp. All rights reserved
Comparing Terminology
GitHub
● Pull Request
● Gist
● Repository
● Organizations
GitLab
➢ Merge Request
➢ Snippet
➢ Project
➢ Groups
DISCLAIMER
This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any third party. © Copyright
2018 BigApp. All rights reserved
Central repository model
Central Repository Model
Central Repo
Developer DeveloperDeveloper
DISCLAIMER
This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any
third party. © Copyright 2018 BigApp. All rights reserved
Git global setup
git config --global user.name "ashokbigapp"
git config --global user.email "ashok@bigappcompany.in"
DISCLAIMER
This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any
third party. © Copyright 2018 BigApp. All rights reserved
Create a new repository
git clone git@testgit.hackerflair.com:curio/cgcr.git
cd cgcr
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
DISCLAIMER
This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any third party. © Copyright 2018
BigApp. All rights reserved
Existing folder
cd existing_folder
git init
git remote add origin git@testgit.hackerflair.com:curio/cgcr.git
git add .
git commit -m "Initial commit"
git push -u origin master
DISCLAIMER
This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any third party. © Copyright
2018 BigApp. All rights reserved
Existing Git repository
cd existing_repo
git remote rename origin old-origin
git remote add origin git@testgit.hackerflair.com:curio/cgcr.git
git push -u origin --all
git push -u origin --tags
DISCLAIMER
This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any third party. ©
Copyright 2018 BigApp. All rights reserved
Git Branch
git checkout [branch]
git checkout -b [branch]
git branch -d [branch]
git branch --help
DISCLAIMER
This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any third party. © Copyright
2018 BigApp. All rights reserved
what is branch really ?
git status
History
Git log
git log
git log [branch]
git log --help
DISCLAIMER
This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any
third party. © Copyright 2018 BigApp. All rights reserved
git add .
git commit -m “making better”
git fetch
git pull
git pull = fetch + merge
git push
git remote -v
git merge [branch]
git reset
git [command] --help
Distributed WorkFlow
fetch, pull and push
who is what now ?
Resources
https://about.gitlab.com/images/press/git-cheat-sheet.pdf
https://git-scm.com/
https://git-scm.com/downloads/guis
#git on IRC
DISCLAIMER
This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any third party. © Copyright
2018 BigApp. All rights reserved
Challenge #1
● clone the code production
● create a branch for issue #2 (iss2)
● work for 5 min
● someone asks for a hotfix for issue #3
● checkout ‘production’
● create a branch (iss3)
● Fix the issue
● checkout production , merge iss3
● push production
● checkout iss2 and keep working
what to do next
Tagging
git tag -a v1.0 b95d62f4c
git stash
Challenge #2
Questions ?
slackme @ashok
gitlab @ashokbigapp
twitter @0fffh
Thankyou

Más contenido relacionado

La actualidad más candente

Gerrit Code Review Analytics
Gerrit Code Review AnalyticsGerrit Code Review Analytics
Gerrit Code Review AnalyticsLuca Milanesio
 
Git - Drupalcamp Ireland Dublin 2010
Git - Drupalcamp Ireland Dublin 2010Git - Drupalcamp Ireland Dublin 2010
Git - Drupalcamp Ireland Dublin 2010alanburke
 
OpenStack Community App Catalog (http://apps.openstack.org)
OpenStack Community App Catalog (http://apps.openstack.org)OpenStack Community App Catalog (http://apps.openstack.org)
OpenStack Community App Catalog (http://apps.openstack.org)aedocw
 
[Perforce] Git Fusion
[Perforce] Git Fusion[Perforce] Git Fusion
[Perforce] Git FusionPerforce
 
You tube api overview
You tube api overviewYou tube api overview
You tube api overviewfirenze-gtug
 
How to Git and Github | Hands on workshop
How to Git and Github | Hands on workshopHow to Git and Github | Hands on workshop
How to Git and Github | Hands on workshopPavitraBhagat
 
Javascript as a target language - GWT kickoff - part1/2
Javascript as a target language - GWT kickoff - part1/2Javascript as a target language - GWT kickoff - part1/2
Javascript as a target language - GWT kickoff - part1/2JooinK
 
QGIS LTR is making the world a better place by Saber Razmjooei
QGIS LTR is making the world a better place by Saber RazmjooeiQGIS LTR is making the world a better place by Saber Razmjooei
QGIS LTR is making the world a better place by Saber RazmjooeiShaun Lewis
 
Git lord | A brief intro about git commands in Star Wars theme
Git lord | A brief intro about git commands in Star Wars themeGit lord | A brief intro about git commands in Star Wars theme
Git lord | A brief intro about git commands in Star Wars themeAkarsh Satija
 
Webinar: Arbeiten mit Git und GitHub
Webinar: Arbeiten mit Git und GitHubWebinar: Arbeiten mit Git und GitHub
Webinar: Arbeiten mit Git und GitHubwasmitweb GmbH
 
Spring Projects Infrastructure
Spring Projects InfrastructureSpring Projects Infrastructure
Spring Projects InfrastructureGunnar Hillert
 
T3CON Munich: Apache Solr for TYPO3: How Continuous Cooperative Innovation ca...
T3CON Munich: Apache Solr for TYPO3: How Continuous Cooperative Innovation ca...T3CON Munich: Apache Solr for TYPO3: How Continuous Cooperative Innovation ca...
T3CON Munich: Apache Solr for TYPO3: How Continuous Cooperative Innovation ca...timohund
 
GerritHub.io - present, past, future
GerritHub.io - present, past, futureGerritHub.io - present, past, future
GerritHub.io - present, past, futureLuca Milanesio
 
Anton Parkhomenko Boost your design workflow or git rebase for designers
Anton Parkhomenko Boost your design workflow or git rebase for designersAnton Parkhomenko Boost your design workflow or git rebase for designers
Anton Parkhomenko Boost your design workflow or git rebase for designersАліна Шепшелей
 

La actualidad más candente (20)

Gerrit Code Review Analytics
Gerrit Code Review AnalyticsGerrit Code Review Analytics
Gerrit Code Review Analytics
 
Git and Version Control at Atlogys
Git and Version Control at AtlogysGit and Version Control at Atlogys
Git and Version Control at Atlogys
 
Git - Drupalcamp Ireland Dublin 2010
Git - Drupalcamp Ireland Dublin 2010Git - Drupalcamp Ireland Dublin 2010
Git - Drupalcamp Ireland Dublin 2010
 
Getting To Know Git
Getting To Know GitGetting To Know Git
Getting To Know Git
 
OpenStack Community App Catalog (http://apps.openstack.org)
OpenStack Community App Catalog (http://apps.openstack.org)OpenStack Community App Catalog (http://apps.openstack.org)
OpenStack Community App Catalog (http://apps.openstack.org)
 
Plugin development
Plugin developmentPlugin development
Plugin development
 
[Perforce] Git Fusion
[Perforce] Git Fusion[Perforce] Git Fusion
[Perforce] Git Fusion
 
You tube api overview
You tube api overviewYou tube api overview
You tube api overview
 
How to Git and Github | Hands on workshop
How to Git and Github | Hands on workshopHow to Git and Github | Hands on workshop
How to Git and Github | Hands on workshop
 
Javascript as a target language - GWT kickoff - part1/2
Javascript as a target language - GWT kickoff - part1/2Javascript as a target language - GWT kickoff - part1/2
Javascript as a target language - GWT kickoff - part1/2
 
QGIS LTR is making the world a better place by Saber Razmjooei
QGIS LTR is making the world a better place by Saber RazmjooeiQGIS LTR is making the world a better place by Saber Razmjooei
QGIS LTR is making the world a better place by Saber Razmjooei
 
Git lord | A brief intro about git commands in Star Wars theme
Git lord | A brief intro about git commands in Star Wars themeGit lord | A brief intro about git commands in Star Wars theme
Git lord | A brief intro about git commands in Star Wars theme
 
Webinar: Arbeiten mit Git und GitHub
Webinar: Arbeiten mit Git und GitHubWebinar: Arbeiten mit Git und GitHub
Webinar: Arbeiten mit Git und GitHub
 
Git essentials
Git essentialsGit essentials
Git essentials
 
Spring Projects Infrastructure
Spring Projects InfrastructureSpring Projects Infrastructure
Spring Projects Infrastructure
 
T3CON Munich: Apache Solr for TYPO3: How Continuous Cooperative Innovation ca...
T3CON Munich: Apache Solr for TYPO3: How Continuous Cooperative Innovation ca...T3CON Munich: Apache Solr for TYPO3: How Continuous Cooperative Innovation ca...
T3CON Munich: Apache Solr for TYPO3: How Continuous Cooperative Innovation ca...
 
Gerrit tutorial
Gerrit tutorialGerrit tutorial
Gerrit tutorial
 
GerritHub.io - present, past, future
GerritHub.io - present, past, futureGerritHub.io - present, past, future
GerritHub.io - present, past, future
 
Git
GitGit
Git
 
Anton Parkhomenko Boost your design workflow or git rebase for designers
Anton Parkhomenko Boost your design workflow or git rebase for designersAnton Parkhomenko Boost your design workflow or git rebase for designers
Anton Parkhomenko Boost your design workflow or git rebase for designers
 

Similar a Git Ninja (bigapp KT)

Git Ninja KT (GitHub to GitLab)
Git Ninja KT (GitHub to GitLab)Git Ninja KT (GitHub to GitLab)
Git Ninja KT (GitHub to GitLab)Ashok Kumar
 
Getting Started with Git
Getting Started with GitGetting Started with Git
Getting Started with GitRick Umali
 
Nyc Code Camp 2010 Git And Github
Nyc Code Camp 2010 Git And GithubNyc Code Camp 2010 Git And Github
Nyc Code Camp 2010 Git And Githubjptoto
 
Getting Into Git
Getting Into GitGetting Into Git
Getting Into GitRick Umali
 
Enterprise git
Enterprise gitEnterprise git
Enterprise gitPedro Melo
 
Github security bug bounty hunting
Github security   bug bounty huntingGithub security   bug bounty hunting
Github security bug bounty huntingvinoth kumar
 
Git Merge Conflict Tutorial | Resolving Merge Conflicts In Git | DevOps Train...
Git Merge Conflict Tutorial | Resolving Merge Conflicts In Git | DevOps Train...Git Merge Conflict Tutorial | Resolving Merge Conflicts In Git | DevOps Train...
Git Merge Conflict Tutorial | Resolving Merge Conflicts In Git | DevOps Train...Edureka!
 
JAZOON'13 - Thomas Hug & Bartosz Majsak - Git Workshop -Essentials
JAZOON'13 - Thomas Hug & Bartosz Majsak - Git Workshop -EssentialsJAZOON'13 - Thomas Hug & Bartosz Majsak - Git Workshop -Essentials
JAZOON'13 - Thomas Hug & Bartosz Majsak - Git Workshop -Essentialsjazoon13
 
An Introduction to Git (even for non-developers)
An Introduction to Git (even for non-developers)An Introduction to Git (even for non-developers)
An Introduction to Git (even for non-developers)John Anderson
 
Workshop on Git and GitHub
Workshop on Git and GitHubWorkshop on Git and GitHub
Workshop on Git and GitHubDSCVSSUT
 
Introduction to Git for Network Engineers (Lab Guide)
Introduction to Git for Network Engineers (Lab Guide)Introduction to Git for Network Engineers (Lab Guide)
Introduction to Git for Network Engineers (Lab Guide)Joel W. King
 
GIT workshop at Selenium Conference 2018
GIT workshop at Selenium Conference 2018GIT workshop at Selenium Conference 2018
GIT workshop at Selenium Conference 2018Pooja Shah
 
Self Hosted Web-based GIT Repository Managers
Self Hosted Web-based GIT Repository ManagersSelf Hosted Web-based GIT Repository Managers
Self Hosted Web-based GIT Repository ManagersPurav Gandhi
 

Similar a Git Ninja (bigapp KT) (20)

Github By Nyros Developer
Github By Nyros DeveloperGithub By Nyros Developer
Github By Nyros Developer
 
Git Ninja KT (GitHub to GitLab)
Git Ninja KT (GitHub to GitLab)Git Ninja KT (GitHub to GitLab)
Git Ninja KT (GitHub to GitLab)
 
Git Series - Part 1
Git Series - Part 1 Git Series - Part 1
Git Series - Part 1
 
Introduction to git & github
Introduction to git & githubIntroduction to git & github
Introduction to git & github
 
GIT from n00b
GIT from n00bGIT from n00b
GIT from n00b
 
Getting Started with Git
Getting Started with GitGetting Started with Git
Getting Started with Git
 
Nyc Code Camp 2010 Git And Github
Nyc Code Camp 2010 Git And GithubNyc Code Camp 2010 Git And Github
Nyc Code Camp 2010 Git And Github
 
Getting Into Git
Getting Into GitGetting Into Git
Getting Into Git
 
Enterprise git
Enterprise gitEnterprise git
Enterprise git
 
Github security bug bounty hunting
Github security   bug bounty huntingGithub security   bug bounty hunting
Github security bug bounty hunting
 
Git Merge Conflict Tutorial | Resolving Merge Conflicts In Git | DevOps Train...
Git Merge Conflict Tutorial | Resolving Merge Conflicts In Git | DevOps Train...Git Merge Conflict Tutorial | Resolving Merge Conflicts In Git | DevOps Train...
Git Merge Conflict Tutorial | Resolving Merge Conflicts In Git | DevOps Train...
 
Git
GitGit
Git
 
Open Source_Git.pptx
Open Source_Git.pptxOpen Source_Git.pptx
Open Source_Git.pptx
 
Git Internals
Git InternalsGit Internals
Git Internals
 
JAZOON'13 - Thomas Hug & Bartosz Majsak - Git Workshop -Essentials
JAZOON'13 - Thomas Hug & Bartosz Majsak - Git Workshop -EssentialsJAZOON'13 - Thomas Hug & Bartosz Majsak - Git Workshop -Essentials
JAZOON'13 - Thomas Hug & Bartosz Majsak - Git Workshop -Essentials
 
An Introduction to Git (even for non-developers)
An Introduction to Git (even for non-developers)An Introduction to Git (even for non-developers)
An Introduction to Git (even for non-developers)
 
Workshop on Git and GitHub
Workshop on Git and GitHubWorkshop on Git and GitHub
Workshop on Git and GitHub
 
Introduction to Git for Network Engineers (Lab Guide)
Introduction to Git for Network Engineers (Lab Guide)Introduction to Git for Network Engineers (Lab Guide)
Introduction to Git for Network Engineers (Lab Guide)
 
GIT workshop at Selenium Conference 2018
GIT workshop at Selenium Conference 2018GIT workshop at Selenium Conference 2018
GIT workshop at Selenium Conference 2018
 
Self Hosted Web-based GIT Repository Managers
Self Hosted Web-based GIT Repository ManagersSelf Hosted Web-based GIT Repository Managers
Self Hosted Web-based GIT Repository Managers
 

Último

Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...tanu pandey
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLManishPatel169454
 

Último (20)

Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 

Git Ninja (bigapp KT)

  • 1. Git Ninja Training Ashok Kumar Cloud Security Architect BigApp
  • 2. Software Development Process DISCLAIMER This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any third party. © Copyright 2018 BigApp. All rights reserved
  • 3. Every Tool Cover Part of Development Process DISCLAIMER This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any third party. © Copyright 2018 BigApp. All rights reserved
  • 4. Dev DISCLAIMER This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any third party. © Copyright 2018 BigApp. All rights reserved
  • 5. CI/CD DISCLAIMER This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any third party. © Copyright 2018 BigApp. All rights reserved
  • 6. GitLab DISCLAIMER This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any third party. © Copyright 2018 BigApp. All rights reserved
  • 7. How do most people work today?
  • 8. Intro Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
  • 10. Why GitLab source:gitlab.com DISCLAIMER This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any third party. © Copyright 2018 BigApp. All rights reserved
  • 12. Auto Devops Gitlab+Kubernetes ● Build ● Test ● Code Quality ● Dependency Scanning ● SAST(Static application security testing) ● DAST ● Deploy ● Performance Testing ● Monitoring ● License Management
  • 13. A basic workflow ● Edit file ● Stage the changes ● Review your changes ● Commit the changes ● every clone is a backup ● work offline DISCLAIMER This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any third party. © Copyright 2018 BigApp. All rights reserved
  • 14. No Network Needed ● Performing a diff ● Viewing file history ● Committing changes ● Merging branches ● Obtaining other revisions of a file ● Switching branches DISCLAIMER This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any third party. © Copyright 2018 BigApp. All rights reserved
  • 15. Comparing Terminology GitHub ● Pull Request ● Gist ● Repository ● Organizations GitLab ➢ Merge Request ➢ Snippet ➢ Project ➢ Groups DISCLAIMER This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any third party. © Copyright 2018 BigApp. All rights reserved
  • 17. Central Repository Model Central Repo Developer DeveloperDeveloper DISCLAIMER This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any third party. © Copyright 2018 BigApp. All rights reserved
  • 18. Git global setup git config --global user.name "ashokbigapp" git config --global user.email "ashok@bigappcompany.in" DISCLAIMER This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any third party. © Copyright 2018 BigApp. All rights reserved
  • 19. Create a new repository git clone git@testgit.hackerflair.com:curio/cgcr.git cd cgcr touch README.md git add README.md git commit -m "add README" git push -u origin master DISCLAIMER This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any third party. © Copyright 2018 BigApp. All rights reserved
  • 20. Existing folder cd existing_folder git init git remote add origin git@testgit.hackerflair.com:curio/cgcr.git git add . git commit -m "Initial commit" git push -u origin master DISCLAIMER This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any third party. © Copyright 2018 BigApp. All rights reserved
  • 21. Existing Git repository cd existing_repo git remote rename origin old-origin git remote add origin git@testgit.hackerflair.com:curio/cgcr.git git push -u origin --all git push -u origin --tags DISCLAIMER This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any third party. © Copyright 2018 BigApp. All rights reserved
  • 22. Git Branch git checkout [branch] git checkout -b [branch] git branch -d [branch] git branch --help DISCLAIMER This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any third party. © Copyright 2018 BigApp. All rights reserved
  • 23. what is branch really ?
  • 26. Git log git log git log [branch] git log --help DISCLAIMER This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any third party. © Copyright 2018 BigApp. All rights reserved
  • 28. git commit -m “making better”
  • 30. git pull git pull = fetch + merge
  • 37. who is what now ?
  • 38. Resources https://about.gitlab.com/images/press/git-cheat-sheet.pdf https://git-scm.com/ https://git-scm.com/downloads/guis #git on IRC DISCLAIMER This document is strictly private, confidential and personal to its recipients and should not be copied, distributed or reproduced in whole or in part, nor passed to any third party. © Copyright 2018 BigApp. All rights reserved
  • 39. Challenge #1 ● clone the code production ● create a branch for issue #2 (iss2) ● work for 5 min ● someone asks for a hotfix for issue #3 ● checkout ‘production’ ● create a branch (iss3) ● Fix the issue ● checkout production , merge iss3 ● push production ● checkout iss2 and keep working
  • 40. what to do next
  • 42. git tag -a v1.0 b95d62f4c