SlideShare une entreprise Scribd logo
1  sur  23
Git - 🐘
Topics 💬
1. What is GIT ?
2. Why GIT is needed?
3. GIT Basic
4. GIT Rules
○ Do
○ Don’t
5. GIT flow
2
Hello! ✋
I am Kelvin Ho
DCS
play with nodejs / php
You can find me at @kelvin2go
https://github.com/kelvin2go
March, 2019
3
What is GIT ? 👼
The introduction of GIT
- Control system
- Version control system
- Distributed version control system
1
“
5
Control System
- Store content / Code / file
- Content tracker
“
6
Version Control
System
- Allow developer add code in parallel
- Keep history of changes
- Git provide branches, merges,
comparing
Distributed Version
Control System
- Decentralized but centralized
- Git has remote repo (which is
same as everyone)
- Every develop has own local
repo
- All develop have a copy of the
code
7
Why GIT is needed?🚀
The reason of using git
2
“
9
Why Git is needed?
- The life before ({date}.zip, ftp, mess... )
- Flexibility
- Allow different working Env ☝
- Allow different developers works on
same project (add / changing code)
- Peer reviews
- Adding / revert version of the project
- 70% dev (stackoverflow), Basic
standard of code sharing
“
10
Why Git is needed? (2)
- Performance
- Fast comparing commit
- Security (user / ssh / code transmit)
- continuous integration
- automated test
- https://about.gitlab.com/product/conti
nuous-integration/
GIT basic 🍎
The basic structure of GIT
3
“
12
GIT basic
- Git clone
- Git pull
- Git status
- Git add
- Git checkout
- Git commit -m
- Git push
Demo: https://github.com/kelvin2go?tab=repositories
Short cuts: https://github.com/kelvin2go/basic_init/blob/master/.bashrc#L15
“
13
GIT Structure
“
14
GIT Structure
Master
- always product-ready. Always GIT PULL
REQUEST only. No direct commit
Develop
- always latest branch before next release.
Always merge / git pull request from
feature branch.
Feature
- New feature: when done, delete this branch
Details: https://nvie.com/posts/a-successful-git-branching-model/
GIT Rules 👪
When we share a git repo, we
need to follow some rules to keep
it clean for everyone to access
15
◇ Use .gitingore to avoid sharing privacy file
◇ git pull before work on anything
◇ Always pull from develop to start
◇ Each ENV (DEV / prod) should belong to one branch
◇ keep branch short life (* except develop / master)
◇ Long live branch don’t diverge (locale commit)
◇ Keep clean and easy to track for everyone
◇ Use Label / Tag if need other to notice
◇ Each feature branch should be follow a ticket
◇ Check the code after pull request
+ continuous integration
Please Do 🙆 ✅
16
Don’t Don’t ...🙅 ❌
◇ Use GIT as a file storage / NAS
■ Its keep track of code and project version
◇ Don’t commit / add private keys 🔑 / hash / token (it leaves in git history)
◇ Local merge without pushing ( all others cant keep track )
◇ Don’t directly commit to master
◇ If doing HK, TW, KR , … , don’t one branch HK, TW, KR. using env to config
◇ Don’t open your own branch. Eg. Kelvin branch which is not shareable /
distributed to anyone.
◇ Don’t Pull request / commit if the feature is not done
■ If we have to, label ‘not complete’
◇ Don’t Commit conflict
17
GIT FLOW 🐘 > 🐉
- Rules + structure = git dev standard => GIT FLOW
- There has many ways
- Ready made command for easier git
apt-get install git-flow
git flow init
Detail : https://danielkummer.github.io/git-flow-cheatsheet/
18
Feature : the feature going add on develop
每一個 task 一條feature 用完 Merge 就 delete feature branch
1. Start: git flow feature start MYFEATURE
2. git add / git commit
3. done: git flow feature publish MYFEATURE
4. make a pull request
5. after merge, remove feature branch
feature/{new}
19
https://github.com/VinceG/vue-web-cam
Git clone ? Git Fork
Whats the different
- Adding vue cam + google vision > fork
DEMO - Git project
20
Review
What & why GIT Basic GIT
Follow rules
=
GIT FLOW
21
Thanks!
Any questions?
◇ @kelvin2go
Github https://github.com/kelvin2go
Web https://kelvinho.js.org
22
Credits
◇ Victor's GIT Presentation
◇ What is git
◇ Why git
Basic git https://guides.github.com/introduction/git-handbook/
Git flow https://gitbook.tw/chapters/gitflow/why-need-git-flow.html
23

Contenu connexe

Tendances

Git and GitHub
Git and GitHubGit and GitHub
Git and GitHubRick Umali
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hubJasleenSondhi
 
GitLab 8.6 - Release Webcast
GitLab 8.6 - Release Webcast GitLab 8.6 - Release Webcast
GitLab 8.6 - Release Webcast GitLab, Inc
 
Zero-Downtime Gerrit Code Review Upgrade
Zero-Downtime Gerrit Code Review UpgradeZero-Downtime Gerrit Code Review Upgrade
Zero-Downtime Gerrit Code Review UpgradeLuca Milanesio
 
Git presentation
Git presentationGit presentation
Git presentationEdson Celio
 
GitLab webcast - Release 8.4
GitLab webcast - Release 8.4GitLab webcast - Release 8.4
GitLab webcast - Release 8.4GitLab, Inc
 
GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)
GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)
GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)Pedro Moreira da Silva
 
Gerrit Code Review Analytics
Gerrit Code Review AnalyticsGerrit Code Review Analytics
Gerrit Code Review AnalyticsLuca Milanesio
 
Git and GitGHub Basics
Git and GitGHub BasicsGit and GitGHub Basics
Git and GitGHub BasicsAswin Barath
 
GerritHub.io - present, past, future
GerritHub.io - present, past, futureGerritHub.io - present, past, future
GerritHub.io - present, past, futureLuca Milanesio
 
Stable master workflow with Gerrit Code Review
Stable master workflow with Gerrit Code ReviewStable master workflow with Gerrit Code Review
Stable master workflow with Gerrit Code ReviewLuca Milanesio
 
Gerrit jenkins-big data-continuous-delivery
Gerrit jenkins-big data-continuous-deliveryGerrit jenkins-big data-continuous-delivery
Gerrit jenkins-big data-continuous-deliveryLuca Milanesio
 
What's New in GitLab and Software Development Trends
What's New in GitLab and Software Development TrendsWhat's New in GitLab and Software Development Trends
What's New in GitLab and Software Development TrendsNoa Harel
 
Gerrit Code Review with GitHub plugin
Gerrit Code Review with GitHub pluginGerrit Code Review with GitHub plugin
Gerrit Code Review with GitHub pluginLuca Milanesio
 
Git in the Enterprise: How to succeed at DevOps using Git and a monorepo
Git in the Enterprise: How to succeed at DevOps using Git and a monorepoGit in the Enterprise: How to succeed at DevOps using Git and a monorepo
Git in the Enterprise: How to succeed at DevOps using Git and a monorepoGina Bustos
 
Git in 10 minutes (WordCamp London 2018)
Git in 10 minutes (WordCamp London 2018)Git in 10 minutes (WordCamp London 2018)
Git in 10 minutes (WordCamp London 2018)Borek Bernard
 
Speed up Continuous Delivery with BigData Analytics
Speed up Continuous Delivery with BigData AnalyticsSpeed up Continuous Delivery with BigData Analytics
Speed up Continuous Delivery with BigData AnalyticsLuca Milanesio
 
Getting started With GIT
Getting started With GITGetting started With GIT
Getting started With GITGhadiAlGhosh
 

Tendances (20)

Git and GitHub
Git and GitHubGit and GitHub
Git and GitHub
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hub
 
Open source
Open sourceOpen source
Open source
 
GitLab 8.6 - Release Webcast
GitLab 8.6 - Release Webcast GitLab 8.6 - Release Webcast
GitLab 8.6 - Release Webcast
 
Zero-Downtime Gerrit Code Review Upgrade
Zero-Downtime Gerrit Code Review UpgradeZero-Downtime Gerrit Code Review Upgrade
Zero-Downtime Gerrit Code Review Upgrade
 
Git presentation
Git presentationGit presentation
Git presentation
 
GitLab webcast - Release 8.4
GitLab webcast - Release 8.4GitLab webcast - Release 8.4
GitLab webcast - Release 8.4
 
GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)
GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)
GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)
 
Gerrit Code Review Analytics
Gerrit Code Review AnalyticsGerrit Code Review Analytics
Gerrit Code Review Analytics
 
Git and GitGHub Basics
Git and GitGHub BasicsGit and GitGHub Basics
Git and GitGHub Basics
 
GerritHub.io - present, past, future
GerritHub.io - present, past, futureGerritHub.io - present, past, future
GerritHub.io - present, past, future
 
GitHub
GitHubGitHub
GitHub
 
Stable master workflow with Gerrit Code Review
Stable master workflow with Gerrit Code ReviewStable master workflow with Gerrit Code Review
Stable master workflow with Gerrit Code Review
 
Gerrit jenkins-big data-continuous-delivery
Gerrit jenkins-big data-continuous-deliveryGerrit jenkins-big data-continuous-delivery
Gerrit jenkins-big data-continuous-delivery
 
What's New in GitLab and Software Development Trends
What's New in GitLab and Software Development TrendsWhat's New in GitLab and Software Development Trends
What's New in GitLab and Software Development Trends
 
Gerrit Code Review with GitHub plugin
Gerrit Code Review with GitHub pluginGerrit Code Review with GitHub plugin
Gerrit Code Review with GitHub plugin
 
Git in the Enterprise: How to succeed at DevOps using Git and a monorepo
Git in the Enterprise: How to succeed at DevOps using Git and a monorepoGit in the Enterprise: How to succeed at DevOps using Git and a monorepo
Git in the Enterprise: How to succeed at DevOps using Git and a monorepo
 
Git in 10 minutes (WordCamp London 2018)
Git in 10 minutes (WordCamp London 2018)Git in 10 minutes (WordCamp London 2018)
Git in 10 minutes (WordCamp London 2018)
 
Speed up Continuous Delivery with BigData Analytics
Speed up Continuous Delivery with BigData AnalyticsSpeed up Continuous Delivery with BigData Analytics
Speed up Continuous Delivery with BigData Analytics
 
Getting started With GIT
Getting started With GITGetting started With GIT
Getting started With GIT
 

Similaire à Git kelvin

Git: Why And How to
Git: Why And How toGit: Why And How to
Git: Why And How tolanhuonga3
 
Bedjango talk about Git & GitHub
Bedjango talk about Git & GitHubBedjango talk about Git & GitHub
Bedjango talk about Git & GitHubBeDjango
 
Advanced Git Tutorial
Advanced Git TutorialAdvanced Git Tutorial
Advanced Git TutorialSage Sharp
 
GIT - DUG Antwerp
GIT - DUG AntwerpGIT - DUG Antwerp
GIT - DUG AntwerpKrimson
 
Git and github - Verson Control for the Modern Developer
Git and github - Verson Control for the Modern DeveloperGit and github - Verson Control for the Modern Developer
Git and github - Verson Control for the Modern DeveloperJohn Stevenson
 
Essential git for developers
Essential git for developersEssential git for developers
Essential git for developersAdam Culp
 
Git and git workflow best practice
Git and git workflow best practiceGit and git workflow best practice
Git and git workflow best practiceMajid Hosseini
 
Introducing Git and git flow
Introducing Git and git flow Introducing Git and git flow
Introducing Git and git flow Sebin Benjamin
 
Git tech talk
Git tech talkGit tech talk
Git tech talkrazasayed
 
Improving your workflow with git
Improving your workflow with gitImproving your workflow with git
Improving your workflow with gitDídac Ríos
 
Brief tutorial on Git
Brief tutorial on GitBrief tutorial on Git
Brief tutorial on Git聖文 鄭
 

Similaire à Git kelvin (20)

Git and Github workshop
Git and Github workshopGit and Github workshop
Git and Github workshop
 
Git best practices workshop
Git best practices workshopGit best practices workshop
Git best practices workshop
 
Advanted git
Advanted git Advanted git
Advanted git
 
Lets git to it
Lets git to itLets git to it
Lets git to it
 
Gn unify git
Gn unify gitGn unify git
Gn unify git
 
Git: Why And How to
Git: Why And How toGit: Why And How to
Git: Why And How to
 
Bedjango talk about Git & GitHub
Bedjango talk about Git & GitHubBedjango talk about Git & GitHub
Bedjango talk about Git & GitHub
 
Advanced Git Tutorial
Advanced Git TutorialAdvanced Git Tutorial
Advanced Git Tutorial
 
GIT - DUG Antwerp
GIT - DUG AntwerpGIT - DUG Antwerp
GIT - DUG Antwerp
 
Git and github - Verson Control for the Modern Developer
Git and github - Verson Control for the Modern DeveloperGit and github - Verson Control for the Modern Developer
Git and github - Verson Control for the Modern Developer
 
Git in Eclipse
Git in EclipseGit in Eclipse
Git in Eclipse
 
Essential git for developers
Essential git for developersEssential git for developers
Essential git for developers
 
Git and git workflow best practice
Git and git workflow best practiceGit and git workflow best practice
Git and git workflow best practice
 
Introducing Git and git flow
Introducing Git and git flow Introducing Git and git flow
Introducing Git and git flow
 
Git tech talk
Git tech talkGit tech talk
Git tech talk
 
Git github
Git githubGit github
Git github
 
Github By Nyros Developer
Github By Nyros DeveloperGithub By Nyros Developer
Github By Nyros Developer
 
Improving your workflow with git
Improving your workflow with gitImproving your workflow with git
Improving your workflow with git
 
Git training v10
Git training v10Git training v10
Git training v10
 
Brief tutorial on Git
Brief tutorial on GitBrief tutorial on Git
Brief tutorial on Git
 

Dernier

Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 

Dernier (20)

Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 

Git kelvin

  • 2. Topics 💬 1. What is GIT ? 2. Why GIT is needed? 3. GIT Basic 4. GIT Rules ○ Do ○ Don’t 5. GIT flow 2
  • 3. Hello! ✋ I am Kelvin Ho DCS play with nodejs / php You can find me at @kelvin2go https://github.com/kelvin2go March, 2019 3
  • 4. What is GIT ? 👼 The introduction of GIT - Control system - Version control system - Distributed version control system 1
  • 5. “ 5 Control System - Store content / Code / file - Content tracker
  • 6. “ 6 Version Control System - Allow developer add code in parallel - Keep history of changes - Git provide branches, merges, comparing
  • 7. Distributed Version Control System - Decentralized but centralized - Git has remote repo (which is same as everyone) - Every develop has own local repo - All develop have a copy of the code 7
  • 8. Why GIT is needed?🚀 The reason of using git 2
  • 9. “ 9 Why Git is needed? - The life before ({date}.zip, ftp, mess... ) - Flexibility - Allow different working Env ☝ - Allow different developers works on same project (add / changing code) - Peer reviews - Adding / revert version of the project - 70% dev (stackoverflow), Basic standard of code sharing
  • 10. “ 10 Why Git is needed? (2) - Performance - Fast comparing commit - Security (user / ssh / code transmit) - continuous integration - automated test - https://about.gitlab.com/product/conti nuous-integration/
  • 11. GIT basic 🍎 The basic structure of GIT 3
  • 12. “ 12 GIT basic - Git clone - Git pull - Git status - Git add - Git checkout - Git commit -m - Git push Demo: https://github.com/kelvin2go?tab=repositories Short cuts: https://github.com/kelvin2go/basic_init/blob/master/.bashrc#L15
  • 14. “ 14 GIT Structure Master - always product-ready. Always GIT PULL REQUEST only. No direct commit Develop - always latest branch before next release. Always merge / git pull request from feature branch. Feature - New feature: when done, delete this branch Details: https://nvie.com/posts/a-successful-git-branching-model/
  • 15. GIT Rules 👪 When we share a git repo, we need to follow some rules to keep it clean for everyone to access 15
  • 16. ◇ Use .gitingore to avoid sharing privacy file ◇ git pull before work on anything ◇ Always pull from develop to start ◇ Each ENV (DEV / prod) should belong to one branch ◇ keep branch short life (* except develop / master) ◇ Long live branch don’t diverge (locale commit) ◇ Keep clean and easy to track for everyone ◇ Use Label / Tag if need other to notice ◇ Each feature branch should be follow a ticket ◇ Check the code after pull request + continuous integration Please Do 🙆 ✅ 16
  • 17. Don’t Don’t ...🙅 ❌ ◇ Use GIT as a file storage / NAS ■ Its keep track of code and project version ◇ Don’t commit / add private keys 🔑 / hash / token (it leaves in git history) ◇ Local merge without pushing ( all others cant keep track ) ◇ Don’t directly commit to master ◇ If doing HK, TW, KR , … , don’t one branch HK, TW, KR. using env to config ◇ Don’t open your own branch. Eg. Kelvin branch which is not shareable / distributed to anyone. ◇ Don’t Pull request / commit if the feature is not done ■ If we have to, label ‘not complete’ ◇ Don’t Commit conflict 17
  • 18. GIT FLOW 🐘 > 🐉 - Rules + structure = git dev standard => GIT FLOW - There has many ways - Ready made command for easier git apt-get install git-flow git flow init Detail : https://danielkummer.github.io/git-flow-cheatsheet/ 18
  • 19. Feature : the feature going add on develop 每一個 task 一條feature 用完 Merge 就 delete feature branch 1. Start: git flow feature start MYFEATURE 2. git add / git commit 3. done: git flow feature publish MYFEATURE 4. make a pull request 5. after merge, remove feature branch feature/{new} 19
  • 20. https://github.com/VinceG/vue-web-cam Git clone ? Git Fork Whats the different - Adding vue cam + google vision > fork DEMO - Git project 20
  • 21. Review What & why GIT Basic GIT Follow rules = GIT FLOW 21
  • 22. Thanks! Any questions? ◇ @kelvin2go Github https://github.com/kelvin2go Web https://kelvinho.js.org 22
  • 23. Credits ◇ Victor's GIT Presentation ◇ What is git ◇ Why git Basic git https://guides.github.com/introduction/git-handbook/ Git flow https://gitbook.tw/chapters/gitflow/why-need-git-flow.html 23