SlideShare a Scribd company logo
1 of 26
1Confidential and propriety Galil Software, Ltd.20128-Feb-16
Git Tutorial
Author:
Nael Abd Aljawad – QA Automation Leader & Engineer
2Confidential and propriety Galil Software, Ltd.201225.12.11
Who Needs GIT ?
3Confidential and propriety Galil Software, Ltd.201225.12.11
 Create things
 Save things
 Edit things
 Save the thing again
Our Daily Tasks
4Confidential and propriety Galil Software, Ltd.201225.12.11
5Confidential and propriety Galil Software, Ltd.201225.12.11
 A distributed version control system
 keep track of changes made to files
 merge the contributions of multiple developers
 facilitates backups
 helps to identify/fix conflicts
 Accountability (who wrote the code?)
 Software branches - different versions of software need to be maintained, ensure bug fixes shared
What is Git ?
6Confidential and propriety Galil Software, Ltd.201225.12.11
 Is a central place in which an aggregation of data is kept and maintained in an organized
way, usually in computer storage
 A repository can be a place where multiple databases or files are located for distribution over
a network, or a repository can be a location that is directly accessible to the user without
having to travel across a network
Git Repository
7Confidential and propriety Galil Software, Ltd.201225.12.11
 The git “index” is where you place files you want committed to the git repository
 Before you “commit” (check-in) files to the git repository, you need to first place the files in the git
“index”
 Files in the git index are files that git would commit to the git repository if you used the git
commit command.
 Files in the git index don’t get committed to the repository until you use the git commit
command
Git Index
8Confidential and propriety Galil Software, Ltd.201225.12.11
 The git index goes by many names. But they all refer to the same thing. Some of the names
you may have heard:
 Index
 Cache
 Directory cache
 Current directory cache
 Staging area
 Staged files
An index by any other name
9Confidential and propriety Galil Software, Ltd.201225.12.11
 A snapshot is the state of something (e.g. a folder) at a specific point in time. In this case,
snapshot means the current content of the test branch, this doesn't have to be the head
revision
 A new commit is created by taking a snapshot of the Index
 A commit is a snapshot of the repo at a given time
Git Snapshot
10Confidential and propriety Galil Software, Ltd.201225.12.11
11Confidential and propriety Galil Software, Ltd.201225.12.11
 $ git init “Project Name”
 Creates a directory, a folder that can contain the project files (Repository)
Git Init
12Confidential and propriety Galil Software, Ltd.201225.12.11
 $ git commit –m
 Is the keyword that actually permanently records a historical version or snapshot of the files as they
exist at the given point in time
Git Commit
13Confidential and propriety Galil Software, Ltd.201225.12.11
 Workspace is what you see in your computers file system
 The index is an invisible space where you can add files you want to commit
 You can always commit to your local repository - it's really stored in the .git folder
 A remote repository can be on another computer. it may not be reachable all the time
Store Places
14Confidential and propriety Galil Software, Ltd.201225.12.11
 $ git add (to index)
 The "add" command puts your changes into the staging area, the "commit" commands saves them
to the local repository
 The staging area is the place where you collect the pieces that will make up a commit
Git Add
15Confidential and propriety Galil Software, Ltd.201225.12.11
 $ git commit -a -m “some stuff I did”
 When implementing a feature or fixing a bug you will usually need several commits to get the work
done. Or maybe it's the other way round: when you work with git you will soon find that making
several small commits is quite convenient, because it helps you structure (and maybe undo) your
work. Even if you made several changes, you can split those up into two commits by first adding
and committing one set of files, and then adding and committing the rest.
 If - on the other hand - you do not want to add the files by hand there is a convenient way to
committing all the changes at once: add the -a flag to the commit
What is a good commit?
16Confidential and propriety Galil Software, Ltd.201225.12.11
 You can work with several remote repositories. The most important remote repository is
usually called origin
 Adding a Remote Repository
 If you created the repository locally you can connect it to a remote repository later on:
 git add remote origin https://github.com/myname/myrepository.git
 Look into .git/config to find the information again.
Remote Repositories
17Confidential and propriety Galil Software, Ltd.201225.12.11
 When you want to work with an existing remote repository you need to find out the
repositories URL. The URLs may start with http, https, ssh, or git.
 Two examples are:
 https://github.com/web-engineering/web-engineering-textbook
 git@github.com:web-engineering/web-engineering-textbook
Clone an existing repository
18Confidential and propriety Galil Software, Ltd.201225.12.11
 When working with a remote repositories you need two now commands: push and pull
Workflow with remote (1)
19Confidential and propriety Galil Software, Ltd.201225.12.11
 When you push your local commits to the remote repository you have to specify a local
branch and the name of the remote repository. When you haven't worked with branches yet
there is only the master branch
 $ git push origin master
 When you pull changes from the remote repository you have to specify the local branch
again (probably master) and the name of the remote repository
 $ git pull
 origin master
 Now you are ready to work with git on your own. You can make a backup or publish to the
world by pushing to a remote repository. But if you want to work in a team you will need to
handle branches.
Workflow with remote (2)
20Confidential and propriety Galil Software, Ltd.201225.12.11
Git Basic Branches
 Master is a permanent branch which always reflects a production-ready state. So yes, it is
for ready-product which can be downloaded on the market by user.
 Release is a temporal supporting branch to support preparation of a new production release.
This means mainly bug fixing, documentation, etc. as pointed out by minas.
21Confidential and propriety Galil Software, Ltd.201225.12.11
Git Basic Branches
22Confidential and propriety Galil Software, Ltd.201225.12.11
23Confidential and propriety Galil Software, Ltd.201225.12.11
24Confidential and propriety Galil Software, Ltd.201225.12.11
Software Engineer
25Confidential and propriety Galil Software, Ltd.201225.12.11
Software Engineer
26Confidential and propriety Galil Software, Ltd.201225.12.11
Thank You 
Nael Abd Aljawad – QA Automation Leader & Engineer

More Related Content

What's hot

Git_and_GitHub Integration_with_Guidewire
Git_and_GitHub Integration_with_GuidewireGit_and_GitHub Integration_with_Guidewire
Git_and_GitHub Integration_with_Guidewire
Gandhi Ramu
 

What's hot (20)

News from Git in Eclipse - EclipseCon EU - 2016-10-26
News from Git in Eclipse - EclipseCon EU - 2016-10-26News from Git in Eclipse - EclipseCon EU - 2016-10-26
News from Git in Eclipse - EclipseCon EU - 2016-10-26
 
GitLab as an Alternative Development Platform for Github.com
GitLab as an Alternative Development Platform for Github.comGitLab as an Alternative Development Platform for Github.com
GitLab as an Alternative Development Platform for Github.com
 
What is Git | What is GitHub | Git Tutorial | GitHub Tutorial | Devops Tutori...
What is Git | What is GitHub | Git Tutorial | GitHub Tutorial | Devops Tutori...What is Git | What is GitHub | Git Tutorial | GitHub Tutorial | Devops Tutori...
What is Git | What is GitHub | Git Tutorial | GitHub Tutorial | Devops Tutori...
 
Introduction to git administration
Introduction to git administrationIntroduction to git administration
Introduction to git administration
 
Git_and_GitHub Integration_with_Guidewire
Git_and_GitHub Integration_with_GuidewireGit_and_GitHub Integration_with_Guidewire
Git_and_GitHub Integration_with_Guidewire
 
Secure GitOps pipelines for Kubernetes with Snyk & Weaveworks
Secure GitOps pipelines for Kubernetes with Snyk & WeaveworksSecure GitOps pipelines for Kubernetes with Snyk & Weaveworks
Secure GitOps pipelines for Kubernetes with Snyk & Weaveworks
 
Meetup 23 - 03 - Application Delivery on K8S with GitOps
Meetup 23 - 03 - Application Delivery on K8S with GitOpsMeetup 23 - 03 - Application Delivery on K8S with GitOps
Meetup 23 - 03 - Application Delivery on K8S with GitOps
 
Gitops Hands On
Gitops Hands OnGitops Hands On
Gitops Hands On
 
Hardening Your CI/CD Pipelines with GitOps and Continuous Security
Hardening Your CI/CD Pipelines with GitOps and Continuous SecurityHardening Your CI/CD Pipelines with GitOps and Continuous Security
Hardening Your CI/CD Pipelines with GitOps and Continuous Security
 
Git cheat sheet
Git cheat sheetGit cheat sheet
Git cheat sheet
 
Kubernetes day 2 Operations
Kubernetes day 2 OperationsKubernetes day 2 Operations
Kubernetes day 2 Operations
 
Software Versioning with Bitbucket and Eclipse
Software Versioning with Bitbucket and EclipseSoftware Versioning with Bitbucket and Eclipse
Software Versioning with Bitbucket and Eclipse
 
Know the Science behind WorkFlows using Git & GitHhub
Know the Science behind WorkFlows using Git & GitHhubKnow the Science behind WorkFlows using Git & GitHhub
Know the Science behind WorkFlows using Git & GitHhub
 
Version control git day01
Version control   git day01Version control   git day01
Version control git day01
 
Git slides
Git slidesGit slides
Git slides
 
GitOps - Operation By Pull Request
GitOps - Operation By Pull RequestGitOps - Operation By Pull Request
GitOps - Operation By Pull Request
 
Deploy Application Files with Git
Deploy Application Files with GitDeploy Application Files with Git
Deploy Application Files with Git
 
A Practical Introduction to git
A Practical Introduction to gitA Practical Introduction to git
A Practical Introduction to git
 
Git Lab Introduction
Git Lab IntroductionGit Lab Introduction
Git Lab Introduction
 
Brief tutorial on Git
Brief tutorial on GitBrief tutorial on Git
Brief tutorial on Git
 

Viewers also liked

Elfst Company Profile 2011
Elfst Company Profile 2011Elfst Company Profile 2011
Elfst Company Profile 2011
yourfuncasino
 

Viewers also liked (12)

Strategic Investment Fund bid
Strategic Investment Fund bidStrategic Investment Fund bid
Strategic Investment Fund bid
 
Sena
SenaSena
Sena
 
Godwin's cv
Godwin's cvGodwin's cv
Godwin's cv
 
Compact & Bijou
Compact & BijouCompact & Bijou
Compact & Bijou
 
Elfst Company Profile 2011
Elfst Company Profile 2011Elfst Company Profile 2011
Elfst Company Profile 2011
 
Feeding and Captivating OU Students
Feeding and Captivating OU StudentsFeeding and Captivating OU Students
Feeding and Captivating OU Students
 
GOLEADOR
GOLEADORGOLEADOR
GOLEADOR
 
Day of languages
Day of languagesDay of languages
Day of languages
 
edwin
edwinedwin
edwin
 
Impression techniques for rpd/ implantology in dentistry
Impression techniques for rpd/ implantology in dentistryImpression techniques for rpd/ implantology in dentistry
Impression techniques for rpd/ implantology in dentistry
 
Spring + WebSocket integration
Spring + WebSocket integrationSpring + WebSocket integration
Spring + WebSocket integration
 
Primary herpetic gingivostomatitis
Primary herpetic gingivostomatitisPrimary herpetic gingivostomatitis
Primary herpetic gingivostomatitis
 

Similar to Git Tutorial

Similar to Git Tutorial (20)

Git
GitGit
Git
 
Git
GitGit
Git
 
Git
GitGit
Git
 
Git 101 - An introduction to Version Control using Git
Git 101 - An introduction to Version Control using Git Git 101 - An introduction to Version Control using Git
Git 101 - An introduction to Version Control using Git
 
git.ppt
git.pptgit.ppt
git.ppt
 
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
 
Version control with Git
Version control with GitVersion control with Git
Version control with Git
 
setting up a repository using GIT
setting up a repository using GITsetting up a repository using GIT
setting up a repository using GIT
 
Understanding GIT and Version Control
Understanding GIT and Version ControlUnderstanding GIT and Version Control
Understanding GIT and Version Control
 
Git for developers
Git for developersGit for developers
Git for developers
 
Introduction to git
Introduction to gitIntroduction to git
Introduction to git
 
A Tutorial for GitHub.pdf
A Tutorial for GitHub.pdfA Tutorial for GitHub.pdf
A Tutorial for GitHub.pdf
 
A Tutorial for GitHub.pdf
A Tutorial for GitHub.pdfA Tutorial for GitHub.pdf
A Tutorial for GitHub.pdf
 
Git training (basic)
Git training (basic)Git training (basic)
Git training (basic)
 
Introduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech ArticleIntroduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech Article
 
Git introduction
Git introductionGit introduction
Git introduction
 
Git Series - Part 1
Git Series - Part 1 Git Series - Part 1
Git Series - Part 1
 
The Galaxy toolshed
The Galaxy toolshedThe Galaxy toolshed
The Galaxy toolshed
 
Git
GitGit
Git
 
Git Overview
Git OverviewGit Overview
Git Overview
 

Recently uploaded

CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
anilsa9823
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
anilsa9823
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 

Recently uploaded (20)

SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 

Git Tutorial

  • 1. 1Confidential and propriety Galil Software, Ltd.20128-Feb-16 Git Tutorial Author: Nael Abd Aljawad – QA Automation Leader & Engineer
  • 2. 2Confidential and propriety Galil Software, Ltd.201225.12.11 Who Needs GIT ?
  • 3. 3Confidential and propriety Galil Software, Ltd.201225.12.11  Create things  Save things  Edit things  Save the thing again Our Daily Tasks
  • 4. 4Confidential and propriety Galil Software, Ltd.201225.12.11
  • 5. 5Confidential and propriety Galil Software, Ltd.201225.12.11  A distributed version control system  keep track of changes made to files  merge the contributions of multiple developers  facilitates backups  helps to identify/fix conflicts  Accountability (who wrote the code?)  Software branches - different versions of software need to be maintained, ensure bug fixes shared What is Git ?
  • 6. 6Confidential and propriety Galil Software, Ltd.201225.12.11  Is a central place in which an aggregation of data is kept and maintained in an organized way, usually in computer storage  A repository can be a place where multiple databases or files are located for distribution over a network, or a repository can be a location that is directly accessible to the user without having to travel across a network Git Repository
  • 7. 7Confidential and propriety Galil Software, Ltd.201225.12.11  The git “index” is where you place files you want committed to the git repository  Before you “commit” (check-in) files to the git repository, you need to first place the files in the git “index”  Files in the git index are files that git would commit to the git repository if you used the git commit command.  Files in the git index don’t get committed to the repository until you use the git commit command Git Index
  • 8. 8Confidential and propriety Galil Software, Ltd.201225.12.11  The git index goes by many names. But they all refer to the same thing. Some of the names you may have heard:  Index  Cache  Directory cache  Current directory cache  Staging area  Staged files An index by any other name
  • 9. 9Confidential and propriety Galil Software, Ltd.201225.12.11  A snapshot is the state of something (e.g. a folder) at a specific point in time. In this case, snapshot means the current content of the test branch, this doesn't have to be the head revision  A new commit is created by taking a snapshot of the Index  A commit is a snapshot of the repo at a given time Git Snapshot
  • 10. 10Confidential and propriety Galil Software, Ltd.201225.12.11
  • 11. 11Confidential and propriety Galil Software, Ltd.201225.12.11  $ git init “Project Name”  Creates a directory, a folder that can contain the project files (Repository) Git Init
  • 12. 12Confidential and propriety Galil Software, Ltd.201225.12.11  $ git commit –m  Is the keyword that actually permanently records a historical version or snapshot of the files as they exist at the given point in time Git Commit
  • 13. 13Confidential and propriety Galil Software, Ltd.201225.12.11  Workspace is what you see in your computers file system  The index is an invisible space where you can add files you want to commit  You can always commit to your local repository - it's really stored in the .git folder  A remote repository can be on another computer. it may not be reachable all the time Store Places
  • 14. 14Confidential and propriety Galil Software, Ltd.201225.12.11  $ git add (to index)  The "add" command puts your changes into the staging area, the "commit" commands saves them to the local repository  The staging area is the place where you collect the pieces that will make up a commit Git Add
  • 15. 15Confidential and propriety Galil Software, Ltd.201225.12.11  $ git commit -a -m “some stuff I did”  When implementing a feature or fixing a bug you will usually need several commits to get the work done. Or maybe it's the other way round: when you work with git you will soon find that making several small commits is quite convenient, because it helps you structure (and maybe undo) your work. Even if you made several changes, you can split those up into two commits by first adding and committing one set of files, and then adding and committing the rest.  If - on the other hand - you do not want to add the files by hand there is a convenient way to committing all the changes at once: add the -a flag to the commit What is a good commit?
  • 16. 16Confidential and propriety Galil Software, Ltd.201225.12.11  You can work with several remote repositories. The most important remote repository is usually called origin  Adding a Remote Repository  If you created the repository locally you can connect it to a remote repository later on:  git add remote origin https://github.com/myname/myrepository.git  Look into .git/config to find the information again. Remote Repositories
  • 17. 17Confidential and propriety Galil Software, Ltd.201225.12.11  When you want to work with an existing remote repository you need to find out the repositories URL. The URLs may start with http, https, ssh, or git.  Two examples are:  https://github.com/web-engineering/web-engineering-textbook  git@github.com:web-engineering/web-engineering-textbook Clone an existing repository
  • 18. 18Confidential and propriety Galil Software, Ltd.201225.12.11  When working with a remote repositories you need two now commands: push and pull Workflow with remote (1)
  • 19. 19Confidential and propriety Galil Software, Ltd.201225.12.11  When you push your local commits to the remote repository you have to specify a local branch and the name of the remote repository. When you haven't worked with branches yet there is only the master branch  $ git push origin master  When you pull changes from the remote repository you have to specify the local branch again (probably master) and the name of the remote repository  $ git pull  origin master  Now you are ready to work with git on your own. You can make a backup or publish to the world by pushing to a remote repository. But if you want to work in a team you will need to handle branches. Workflow with remote (2)
  • 20. 20Confidential and propriety Galil Software, Ltd.201225.12.11 Git Basic Branches  Master is a permanent branch which always reflects a production-ready state. So yes, it is for ready-product which can be downloaded on the market by user.  Release is a temporal supporting branch to support preparation of a new production release. This means mainly bug fixing, documentation, etc. as pointed out by minas.
  • 21. 21Confidential and propriety Galil Software, Ltd.201225.12.11 Git Basic Branches
  • 22. 22Confidential and propriety Galil Software, Ltd.201225.12.11
  • 23. 23Confidential and propriety Galil Software, Ltd.201225.12.11
  • 24. 24Confidential and propriety Galil Software, Ltd.201225.12.11 Software Engineer
  • 25. 25Confidential and propriety Galil Software, Ltd.201225.12.11 Software Engineer
  • 26. 26Confidential and propriety Galil Software, Ltd.201225.12.11 Thank You  Nael Abd Aljawad – QA Automation Leader & Engineer