SlideShare a Scribd company logo
Git basics
A
beginner’s
guide
❏ Become familiar with the git workflow and basic commands.
❏ You have access to all versions of all files in Git repository at any time, it’s almost
impossible to lose any part of a code.
❏ But even if you are not convinced after this presentation to use it for your daily
work , at least knowing the basics will help you communicate better with the
developers in your team.
❏ It is not only for developers a great source code management tool. It can be used also by
designers and product managers to keep track of different versions of their work.
Agenda
❏ What is git?
❏ How does git work?
❏ Workflow - Basic commands
❏ Basic setup for your project
❏ Branching and Merging
❏ Review the Changes of your
Teammates
What is git ?
❏ Version Control tool. People can keep track of changes in the directory and recall different versions.
❏ Collaboration tool between multiple authors. Git keeps tracks of who, when and why does changes.
❏ Distributed VCS. Server has the master repo* , but you have a copy on your local machine and you can
run everything offline ( not pull & push from remote)
❏ Git and Gitlab are not the same!
* repository: A directory where Git has been initialized to start version controlling your files.
It is not the only Version Control tool ( Subversion, Mercurial )
Git workflow
❏ Push changes to remote.
$ git push remotename remotebranchname
❏ Make changes, then stage.
$ git add
❏ Obtain repository.
$ git init or $ git clone
Remote repository
Working directory
pull
Local repository
Stage
fetch
push
add
commitcheckout
❏ Commit changes to the local repository.
$ git commit -m “some changes”
❏ Fetch and checkout latest changes.
$ git fetch
$ git checkout
Time for action!
Git basic commands
❏ $ git push remotename remotebranch
❏ $ git merge featurename
❏ $ git checkout branchname
❏ $ git branch featurename
❏ $ git checkout -b featurename
❏ $ git pull || $ git fetch
❏ $ git commit -m “ commit message ”
❏ $ git add filename
Basic setup
❏ Login to git.ng.bluemix.net and go to your team’s gitlab project
❏ Create a new repository
❏ Follow the instructions and go to your terminal
Create a README.md file and do $ git status
$ git add README.md
$ git add -A or $ git add . will add all the latest changes of your local repo.
$ git commit -m “Initial commit”
$ git commit -am “Initial commit” will add all the latest changes and commit them
$ cd myFolder/thisGitProject/
$ git init
$ git config --global user.name "My Name"
$ git config --global user.email myEmail@example.com
In case you have already an existing folder
$ git remote add origin repositoryLinkOnGitlab.git
Basic setup
And finally….
$ git push -u origin master
Branches are a very smart way to isolate your work. You can experiment and
try out things without altering the dev or production code.
Branching and Merging
$ git branch featurename
You can change branch with:
$ git checkout branchname
or do both at once :
$ git checkout -b featurename
When you feature is ready, you can merge it with your
master branch.
Then, meeeergeeee
$ git merge featurename
First, checkout to the master branch
$ git checkout master
Branching and Merging
Code Reviews
❏ Crucial for shipping high quality code to production!
Thank you !

More Related Content

What's hot

Git-r-Done
Git-r-DoneGit-r-Done
Git-r-Done
Cesar Martinez
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
Rick Umali
 
Advance workshop on git
Advance workshop on gitAdvance workshop on git
Advance workshop on git
Himanshu Agrawal
 
Git & Github
Git & GithubGit & Github
Git & Github
Aman Lalpuria
 
Formation git
Formation gitFormation git
Formation git
Ghariani Tewfik
 
Extra bit with git
Extra bit with gitExtra bit with git
Extra bit with git
Himanshu Agrawal
 
Git & github
Git & githubGit & github
Git & github
MicroPyramid .
 
Git Going w/ Git
Git Going w/ GitGit Going w/ Git
Git Going w/ Git
heyMP
 
Mr.Crabs Git workflow
Mr.Crabs Git workflowMr.Crabs Git workflow
Mr.Crabs Git workflow
Wuriyanto Musobar
 
GIT workshop at Selenium Conference 2018
GIT workshop at Selenium Conference 2018GIT workshop at Selenium Conference 2018
GIT workshop at Selenium Conference 2018
Pooja Shah
 
Git basics
Git basicsGit basics
Git basics
Padmavathi Tiwari
 
Recovering From Git Mistakes - Nina Zakharenko
Recovering From Git Mistakes - Nina ZakharenkoRecovering From Git Mistakes - Nina Zakharenko
Recovering From Git Mistakes - Nina Zakharenko
Nina Zakharenko
 
Git
GitGit
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
Luca Milanesio
 
CodeMontage CodeFlow 1
CodeMontage CodeFlow 1CodeMontage CodeFlow 1
CodeMontage CodeFlow 1
CodeMontage
 
Advanted git
Advanted git Advanted git
Advanted git
Sahil Gupta
 
Getting Started with Git
Getting Started with GitGetting Started with Git
Getting Started with Git
Rick Umali
 
Version control
Version controlVersion control
Version control
Giovanni Marco Dall'Olio
 
Sample From Ramesh
Sample From RameshSample From Ramesh
Sample From Ramesh
Ramesh Kumar
 
Tài liệu sử dụng GitHub
Tài liệu sử dụng GitHubTài liệu sử dụng GitHub
Tài liệu sử dụng GitHub
viet nghiem
 

What's hot (20)

Git-r-Done
Git-r-DoneGit-r-Done
Git-r-Done
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Advance workshop on git
Advance workshop on gitAdvance workshop on git
Advance workshop on git
 
Git & Github
Git & GithubGit & Github
Git & Github
 
Formation git
Formation gitFormation git
Formation git
 
Extra bit with git
Extra bit with gitExtra bit with git
Extra bit with git
 
Git & github
Git & githubGit & github
Git & github
 
Git Going w/ Git
Git Going w/ GitGit Going w/ Git
Git Going w/ Git
 
Mr.Crabs Git workflow
Mr.Crabs Git workflowMr.Crabs Git workflow
Mr.Crabs Git workflow
 
GIT workshop at Selenium Conference 2018
GIT workshop at Selenium Conference 2018GIT workshop at Selenium Conference 2018
GIT workshop at Selenium Conference 2018
 
Git basics
Git basicsGit basics
Git basics
 
Recovering From Git Mistakes - Nina Zakharenko
Recovering From Git Mistakes - Nina ZakharenkoRecovering From Git Mistakes - Nina Zakharenko
Recovering From Git Mistakes - Nina Zakharenko
 
Git
GitGit
Git
 
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
 
CodeMontage CodeFlow 1
CodeMontage CodeFlow 1CodeMontage CodeFlow 1
CodeMontage CodeFlow 1
 
Advanted git
Advanted git Advanted git
Advanted git
 
Getting Started with Git
Getting Started with GitGetting Started with Git
Getting Started with Git
 
Version control
Version controlVersion control
Version control
 
Sample From Ramesh
Sample From RameshSample From Ramesh
Sample From Ramesh
 
Tài liệu sử dụng GitHub
Tài liệu sử dụng GitHubTài liệu sử dụng GitHub
Tài liệu sử dụng GitHub
 

Similar to Git basics : a beginner's guide

Git and github
Git and githubGit and github
Git and github
Teodora Ahkozidou
 
Git and Github
Git and GithubGit and Github
Git and Github
Teodora Ahkozidou
 
簡單介紹git
簡單介紹git簡單介紹git
簡單介紹git
Grace Chien
 
Git.pptx
Git.pptxGit.pptx
Git.pptx
PalashIMS
 
Git, github and the hacktober fest
Git, github and the hacktober festGit, github and the hacktober fest
Git, github and the hacktober fest
UtkarshRaj83
 
Understanding about git
Understanding about gitUnderstanding about git
Understanding about git
Sothearin Ren
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITM
gdsc13
 
Git github
Git githubGit github
Git github
Anurag Deb
 
Git Init (Introduction to Git)
Git Init (Introduction to Git)Git Init (Introduction to Git)
Git Init (Introduction to Git)
GDSC UofT Mississauga
 
Git slides
Git slidesGit slides
Git slides
Nguyen Van Hung
 
Git presentation
Git presentationGit presentation
Git presentation
James Cuzella
 
1-Intro to VC & GIT PDF.pptx
1-Intro to VC & GIT PDF.pptx1-Intro to VC & GIT PDF.pptx
1-Intro to VC & GIT PDF.pptx
HuthaifaAlmaqrami1
 
Learn Git Basics
Learn Git BasicsLearn Git Basics
Learn Git Basics
Prakash Dantuluri
 
Github By Nyros Developer
Github By Nyros DeveloperGithub By Nyros Developer
Github By Nyros Developer
Nyros Technologies
 
Hacktoberfest intro to Git and GitHub
Hacktoberfest intro to Git and GitHubHacktoberfest intro to Git and GitHub
Hacktoberfest intro to Git and GitHub
DSC GVP
 
Git installation and configuration
Git installation and configurationGit installation and configuration
Git installation and configuration
Kishor Kumar
 
Introduction git
Introduction gitIntroduction git
Introduction git
Dian Sigit Prastowo
 
git2.ppt
git2.pptgit2.ppt
git2.ppt
ssusered2ec2
 
Git and github 101
Git and github 101Git and github 101
Git and github 101
Senthilkumar Gopal
 

Similar to Git basics : a beginner's guide (20)

Git and github
Git and githubGit and github
Git and github
 
Git and Github
Git and GithubGit and Github
Git and Github
 
簡單介紹git
簡單介紹git簡單介紹git
簡單介紹git
 
Git.pptx
Git.pptxGit.pptx
Git.pptx
 
Git, github and the hacktober fest
Git, github and the hacktober festGit, github and the hacktober fest
Git, github and the hacktober fest
 
Understanding about git
Understanding about gitUnderstanding about git
Understanding about git
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITM
 
setting up a repository using GIT
setting up a repository using GITsetting up a repository using GIT
setting up a repository using GIT
 
Git github
Git githubGit github
Git github
 
Git Init (Introduction to Git)
Git Init (Introduction to Git)Git Init (Introduction to Git)
Git Init (Introduction to Git)
 
Git slides
Git slidesGit slides
Git slides
 
Git presentation
Git presentationGit presentation
Git presentation
 
1-Intro to VC & GIT PDF.pptx
1-Intro to VC & GIT PDF.pptx1-Intro to VC & GIT PDF.pptx
1-Intro to VC & GIT PDF.pptx
 
Learn Git Basics
Learn Git BasicsLearn Git Basics
Learn Git Basics
 
Github By Nyros Developer
Github By Nyros DeveloperGithub By Nyros Developer
Github By Nyros Developer
 
Hacktoberfest intro to Git and GitHub
Hacktoberfest intro to Git and GitHubHacktoberfest intro to Git and GitHub
Hacktoberfest intro to Git and GitHub
 
Git installation and configuration
Git installation and configurationGit installation and configuration
Git installation and configuration
 
Introduction git
Introduction gitIntroduction git
Introduction git
 
git2.ppt
git2.pptgit2.ppt
git2.ppt
 
Git and github 101
Git and github 101Git and github 101
Git and github 101
 

Recently uploaded

Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
AMB-Review
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
Globus
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
takuyayamamoto1800
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
Donna Lenk
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
Globus
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
Ortus Solutions, Corp
 
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptxText-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
ShamsuddeenMuhammadA
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
Georgi Kodinov
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Globus
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
Fermin Galan
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
Aftab Hussain
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
Aftab Hussain
 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
NYGGS Automation Suite
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
Google
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
rickgrimesss22
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
Matt Welsh
 
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
Alina Yurenko
 

Recently uploaded (20)

Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
 
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptxText-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
 
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
 

Git basics : a beginner's guide

  • 2.
  • 3. ❏ Become familiar with the git workflow and basic commands. ❏ You have access to all versions of all files in Git repository at any time, it’s almost impossible to lose any part of a code. ❏ But even if you are not convinced after this presentation to use it for your daily work , at least knowing the basics will help you communicate better with the developers in your team. ❏ It is not only for developers a great source code management tool. It can be used also by designers and product managers to keep track of different versions of their work.
  • 4. Agenda ❏ What is git? ❏ How does git work? ❏ Workflow - Basic commands ❏ Basic setup for your project ❏ Branching and Merging ❏ Review the Changes of your Teammates
  • 5. What is git ? ❏ Version Control tool. People can keep track of changes in the directory and recall different versions. ❏ Collaboration tool between multiple authors. Git keeps tracks of who, when and why does changes. ❏ Distributed VCS. Server has the master repo* , but you have a copy on your local machine and you can run everything offline ( not pull & push from remote) ❏ Git and Gitlab are not the same! * repository: A directory where Git has been initialized to start version controlling your files.
  • 6. It is not the only Version Control tool ( Subversion, Mercurial )
  • 7. Git workflow ❏ Push changes to remote. $ git push remotename remotebranchname ❏ Make changes, then stage. $ git add ❏ Obtain repository. $ git init or $ git clone Remote repository Working directory pull Local repository Stage fetch push add commitcheckout ❏ Commit changes to the local repository. $ git commit -m “some changes” ❏ Fetch and checkout latest changes. $ git fetch $ git checkout
  • 9. Git basic commands ❏ $ git push remotename remotebranch ❏ $ git merge featurename ❏ $ git checkout branchname ❏ $ git branch featurename ❏ $ git checkout -b featurename ❏ $ git pull || $ git fetch ❏ $ git commit -m “ commit message ” ❏ $ git add filename
  • 10. Basic setup ❏ Login to git.ng.bluemix.net and go to your team’s gitlab project ❏ Create a new repository ❏ Follow the instructions and go to your terminal
  • 11. Create a README.md file and do $ git status $ git add README.md $ git add -A or $ git add . will add all the latest changes of your local repo. $ git commit -m “Initial commit” $ git commit -am “Initial commit” will add all the latest changes and commit them $ cd myFolder/thisGitProject/ $ git init $ git config --global user.name "My Name" $ git config --global user.email myEmail@example.com In case you have already an existing folder $ git remote add origin repositoryLinkOnGitlab.git Basic setup
  • 12. And finally…. $ git push -u origin master
  • 13. Branches are a very smart way to isolate your work. You can experiment and try out things without altering the dev or production code. Branching and Merging $ git branch featurename You can change branch with: $ git checkout branchname or do both at once : $ git checkout -b featurename
  • 14. When you feature is ready, you can merge it with your master branch. Then, meeeergeeee $ git merge featurename First, checkout to the master branch $ git checkout master Branching and Merging
  • 15. Code Reviews ❏ Crucial for shipping high quality code to production!

Editor's Notes

  1. it is fast and effortless by its nature, as most of the stuff happens on local machine