SlideShare a Scribd company logo
Git Ninja Training
Ashok Kumar
Cloud Security Architect
BigApp
Software Development Process
Every Tool Cover Part of Development Process
Dev
CI/CD
GitLab
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
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
No Network Needed
● Performing a diff
● Viewing file history
● Committing changes
● Merging branches
● Obtaining other revisions of a file
● Switching branches
Comparing Terminology
GitHub
● Pull Request
● Gist
● Repository
● Organizations
GitLab
➢ Merge Request
➢ Snippet
➢ Project
➢ Groups
Central repository model
Central Repository Model
Central Repo
Developer DeveloperDeveloper
Git global setup
git config --global user.name "ashokbigapp"
git config --global user.email "ashok@bigappcompany.in"
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
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
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
Git Branch
git checkout [branch]
git checkout -b [branch]
git branch -d [branch]
git branch --help
what is branch really ?
git status
History
Git log
git log
git log [branch]
git log --help
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
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 ?
gitlab @ashokbigapp
twitter @0fffh
Thankyou

More Related Content

PDF
Git - An Introduction
PDF
Collaborative development with Git | Workshop
PPTX
Introduction To Git Workshop
DOCX
Git github
PPTX
GitHub and Open Source - GDGoC MIT Anna University
ODP
GIT from n00b
PPTX
Introduction to Git and Github
PPTX
14 oct Git & GitHub.pptx
Git - An Introduction
Collaborative development with Git | Workshop
Introduction To Git Workshop
Git github
GitHub and Open Source - GDGoC MIT Anna University
GIT from n00b
Introduction to Git and Github
14 oct Git & GitHub.pptx

Similar to Git Ninja KT (GitHub to GitLab) (20)

PPTX
Learning Basic GIT Cmd
PPTX
Introduction to git
PPTX
Introduction git
PPT
Github By Nyros Developer
PPTX
Git: Why And How to
KEY
The everyday developer's guide to version control with Git
PDF
Wokshop de Git
PPTX
Open Source_Git.pptx
PDF
Git with the flow
PPTX
Hacktoberfest intro to Git and GitHub
PPTX
Introduction into Git
PDF
Git presentation
PPTX
tech winter break workshop on git &git hub.pptx
PPTX
Git and GitHub Presentation of GDG on Campus UNSTPB
PDF
Introduction to Git for Artists
ODP
Git: Git'ing the Basic
PPTX
Git Obstacle Course: Stop BASHing your head and break down the basics
PDF
GIT_In_90_Minutes
PPTX
Git and GitHub Workshop of GDG on Campus UNSTPB
PPTX
Git and Github
Learning Basic GIT Cmd
Introduction to git
Introduction git
Github By Nyros Developer
Git: Why And How to
The everyday developer's guide to version control with Git
Wokshop de Git
Open Source_Git.pptx
Git with the flow
Hacktoberfest intro to Git and GitHub
Introduction into Git
Git presentation
tech winter break workshop on git &git hub.pptx
Git and GitHub Presentation of GDG on Campus UNSTPB
Introduction to Git for Artists
Git: Git'ing the Basic
Git Obstacle Course: Stop BASHing your head and break down the basics
GIT_In_90_Minutes
Git and GitHub Workshop of GDG on Campus UNSTPB
Git and Github
Ad

Recently uploaded (20)

PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Approach and Philosophy of On baking technology
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
Big Data Technologies - Introduction.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Cloud computing and distributed systems.
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Programs and apps: productivity, graphics, security and other tools
PPT
Teaching material agriculture food technology
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
KodekX | Application Modernization Development
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Per capita expenditure prediction using model stacking based on satellite ima...
Approach and Philosophy of On baking technology
20250228 LYD VKU AI Blended-Learning.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Big Data Technologies - Introduction.pptx
Unlocking AI with Model Context Protocol (MCP)
Cloud computing and distributed systems.
Network Security Unit 5.pdf for BCA BBA.
Programs and apps: productivity, graphics, security and other tools
Teaching material agriculture food technology
Agricultural_Statistics_at_a_Glance_2022_0.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Encapsulation_ Review paper, used for researhc scholars
KodekX | Application Modernization Development
Mobile App Security Testing_ A Comprehensive Guide.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Diabetes mellitus diagnosis method based random forest with bat algorithm
The Rise and Fall of 3GPP – Time for a Sabbatical?
Ad

Git Ninja KT (GitHub to GitLab)