SlideShare a Scribd company logo
Git workshop
GIT 
Workshop by @AlSayedGamal
AGENDA 
• Introduction 
• getting started 
• git workflow 
• Tips and tricks 
• social coding 
(github)
INTRODUCTION 
• What’s git and what’s VCS? 
• git history
Sayevt ya Ali 
SH*T HAPPENS 
If it’s not power outage it’s disk failure os failure,etc..
WHAT ABOUT VCS THAT HANDLES LINUX ? 
The development of Git began on 3 April 2005. The project was 
announced on 6 April, and became self-hosting as of 7 April.
GIT CHARACTERISTICS 
• Strong support for non-linear 
development 
• Distributed development 
• Compatibility with existing systems/ 
protocols 
• Efficient handling of large projects 
• Cryptographic authentication of history 
• Pluggable merge strategies 
• Toolkit-based design(C & Shell)
HOW GIT STORES DATA 
• git has three main types 
• blob (binary large object) 
• tree (basically tree of 
blobs) 
• graph (directed graph of 
commits)
Git workshop
Git workshop
INSTALLING GIT 
• On centos you will always have 
dependancies resolved. 
• On ubuntu package name is git 
>= 12.04 
• For mac I use homebrew 
however ports and fink should 
work the same. 
• On windows give linux a chance 
or try cygwin it may be installed 
else go for msysGit >= 1.7.10 
redhat 
yum install git 
debian 
apt-get install git 
mac 
brew install git 
windows 
use linux or 
install cygwin or msysGit
GETTING STARTED 
• Git the command line 
• New repo 
• New file 
• Basic config 
• First commit 
• View difference 
• Remove and rename files 
• Copy your repo
BRANCHING AND MERGING 
• git branch <branch name> 
• git checkout -b <branch 
name> 
• git checkout <branch 
name> 
• git merge <other branch>
GIT FLOW BRANCHING 
git flow command line tool will help you structure your 
app.
TIPS AND TRICKS 
These tips will be used almost in every project.
IGNORE 
.gitignore files that shouldn’t be tracked. 
Like .pyc files
BLAME 
git blame to know who is responsible of this change. 
Try sublime (and your favourite IDE) blame integration.
./manage.py test 
# if all pass 
git push origin develop 
TEST > PUSH 
Before pushing make sure that you pass test 
django hint: in .bachrc alias gpush to ./manage.py test & git push origin develop
STASH AND CLEAN 
• git stash will clean your 
stage to the most recent 
commit. 
• git stash apply to bring your 
mess again. 
• Clean untracked files: 
• git clean -d <path>
TAG 
• git tag -a v1.0.0 -m 
"Creating the first release 
candidate” 
• git show v1.0.0
GITHUB 
• Normal Commercial 
membership. 
• Star, watch and follow. 
• pulse.
REFERENCES 
• gitready.com 
• git-scm.com 
• Book: version control with git 2nd edition - O’Reilly. 
• wikipedia | en.wikipedia.org/wiki/Git_(software) 
• github.com
QUESTIONS ?
GIT COMMIT -M “THANK YOU”

More Related Content

PPTX
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
PPTX
Git n git hub
PPTX
Git kelvin
PDF
Git and GitHub
PPTX
PDF
Intro to git and git hub
PDF
Git and GitGHub Basics
PDF
Contributing to open source using Git
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
Git n git hub
Git kelvin
Git and GitHub
Intro to git and git hub
Git and GitGHub Basics
Contributing to open source using Git

What's hot (20)

PPTX
Introduction to git and Github
PDF
GitHub
PPTX
Git basics
PDF
Github Case Study By Amil Ali
PPTX
PDF
Getting started With GIT
PPTX
You can git
PPTX
Smile Gupta - Hacktoberfest Celebration 2020
PPTX
Git Lab Introduction
ODP
Open Innovation Lab (OIL) - 20150227 - GIT Intro Workshop
PPTX
Git'in on Windows
PDF
Git Tutorial
PDF
PDF
Getting started with GitHub
ODP
Git for standalone use
PPTX
Git'in in 15
PPTX
Speed up Continuous Delivery with BigData Analytics
PPTX
Git hub visualstudiocode
Introduction to git and Github
GitHub
Git basics
Github Case Study By Amil Ali
Getting started With GIT
You can git
Smile Gupta - Hacktoberfest Celebration 2020
Git Lab Introduction
Open Innovation Lab (OIL) - 20150227 - GIT Intro Workshop
Git'in on Windows
Git Tutorial
Getting started with GitHub
Git for standalone use
Git'in in 15
Speed up Continuous Delivery with BigData Analytics
Git hub visualstudiocode
Ad

Viewers also liked (13)

PDF
Python Novice to Ninja
PDF
Python 45 minutes hangout #3
PDF
Mansoura University CSED & Nozom web development sprint
PPTX
Git workshop
PDF
Git into the Flow, with the Ultimate Continuous Delivery Workflow on Heroku
PDF
Android antipatterns
PPTX
Ultimate Git Workflow - Seoul 2015
PDF
Git-flow workflow and pull-requests
PDF
Collaborative development with Git | Workshop
PPTX
Git Workshop
PDF
Git training
PDF
Git flow Introduction
Python Novice to Ninja
Python 45 minutes hangout #3
Mansoura University CSED & Nozom web development sprint
Git workshop
Git into the Flow, with the Ultimate Continuous Delivery Workflow on Heroku
Android antipatterns
Ultimate Git Workflow - Seoul 2015
Git-flow workflow and pull-requests
Collaborative development with Git | Workshop
Git Workshop
Git training
Git flow Introduction
Ad

Similar to Git workshop (20)

PDF
Git-r-Done
ZIP
Beginner's Guide to Version Control with Git
PDF
The Basics of Open Source Collaboration With Git and GitHub
PDF
Enterprise git
PPTX
Techoalien git
PPTX
Techoalien git
PPTX
Techoalien git
PPTX
Que nos espera a los ALM Dudes para el 2013?
PPTX
Introduction to git and githhub with practicals.pptx
PPTX
Git One Day Training Notes
PPT
Git is a distributed version control system .
PDF
Intro to Git & GitHub
PPT
GIT-FirstPart.ppt
PPT
Introduction to git
PPT
Git installation and configuration
PPTX
PDF
Git for folk who like GUIs
PPTX
Git-guidance for beginner- IT support.pptx.pptx
PPTX
Git-guidance for beginner- IT support.pptx
PPTX
Introduction to git hub
Git-r-Done
Beginner's Guide to Version Control with Git
The Basics of Open Source Collaboration With Git and GitHub
Enterprise git
Techoalien git
Techoalien git
Techoalien git
Que nos espera a los ALM Dudes para el 2013?
Introduction to git and githhub with practicals.pptx
Git One Day Training Notes
Git is a distributed version control system .
Intro to Git & GitHub
GIT-FirstPart.ppt
Introduction to git
Git installation and configuration
Git for folk who like GUIs
Git-guidance for beginner- IT support.pptx.pptx
Git-guidance for beginner- IT support.pptx
Introduction to git hub

More from Al Sayed Gamal (19)

PDF
9 patterns of microservices
PPTX
Elixir introduction
PDF
Racist syndrome (composition over inheritance)
PDF
Ionic Hybrid Mobile Application
PDF
Rails course day 8
PDF
Rails course day 7
PDF
Rails course day 6
PDF
Rails course day 5
PDF
Rails course day 4
PDF
Rails course day 3
PDF
Rails course day 2
PDF
PDF
OpenStack Murano Application Catalog
PDF
Failfast
PDF
Web development Hackathon
PDF
Python novice to ninja
PDF
Python 45 minutes Hangouts #4
PDF
Python45 2
PDF
Python45s - Session 01
9 patterns of microservices
Elixir introduction
Racist syndrome (composition over inheritance)
Ionic Hybrid Mobile Application
Rails course day 8
Rails course day 7
Rails course day 6
Rails course day 5
Rails course day 4
Rails course day 3
Rails course day 2
OpenStack Murano Application Catalog
Failfast
Web development Hackathon
Python novice to ninja
Python 45 minutes Hangouts #4
Python45 2
Python45s - Session 01

Recently uploaded (20)

PPTX
Big Data Technologies - Introduction.pptx
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
KodekX | Application Modernization Development
PPTX
A Presentation on Artificial Intelligence
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
Big Data Technologies - Introduction.pptx
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
MYSQL Presentation for SQL database connectivity
Review of recent advances in non-invasive hemoglobin estimation
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
“AI and Expert System Decision Support & Business Intelligence Systems”
KodekX | Application Modernization Development
A Presentation on Artificial Intelligence
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
NewMind AI Monthly Chronicles - July 2025
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Machine learning based COVID-19 study performance prediction
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Encapsulation_ Review paper, used for researhc scholars
Mobile App Security Testing_ A Comprehensive Guide.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
20250228 LYD VKU AI Blended-Learning.pptx
Per capita expenditure prediction using model stacking based on satellite ima...

Git workshop

  • 2. GIT Workshop by @AlSayedGamal
  • 3. AGENDA • Introduction • getting started • git workflow • Tips and tricks • social coding (github)
  • 4. INTRODUCTION • What’s git and what’s VCS? • git history
  • 5. Sayevt ya Ali SH*T HAPPENS If it’s not power outage it’s disk failure os failure,etc..
  • 6. WHAT ABOUT VCS THAT HANDLES LINUX ? The development of Git began on 3 April 2005. The project was announced on 6 April, and became self-hosting as of 7 April.
  • 7. GIT CHARACTERISTICS • Strong support for non-linear development • Distributed development • Compatibility with existing systems/ protocols • Efficient handling of large projects • Cryptographic authentication of history • Pluggable merge strategies • Toolkit-based design(C & Shell)
  • 8. HOW GIT STORES DATA • git has three main types • blob (binary large object) • tree (basically tree of blobs) • graph (directed graph of commits)
  • 11. INSTALLING GIT • On centos you will always have dependancies resolved. • On ubuntu package name is git >= 12.04 • For mac I use homebrew however ports and fink should work the same. • On windows give linux a chance or try cygwin it may be installed else go for msysGit >= 1.7.10 redhat yum install git debian apt-get install git mac brew install git windows use linux or install cygwin or msysGit
  • 12. GETTING STARTED • Git the command line • New repo • New file • Basic config • First commit • View difference • Remove and rename files • Copy your repo
  • 13. BRANCHING AND MERGING • git branch <branch name> • git checkout -b <branch name> • git checkout <branch name> • git merge <other branch>
  • 14. GIT FLOW BRANCHING git flow command line tool will help you structure your app.
  • 15. TIPS AND TRICKS These tips will be used almost in every project.
  • 16. IGNORE .gitignore files that shouldn’t be tracked. Like .pyc files
  • 17. BLAME git blame to know who is responsible of this change. Try sublime (and your favourite IDE) blame integration.
  • 18. ./manage.py test # if all pass git push origin develop TEST > PUSH Before pushing make sure that you pass test django hint: in .bachrc alias gpush to ./manage.py test & git push origin develop
  • 19. STASH AND CLEAN • git stash will clean your stage to the most recent commit. • git stash apply to bring your mess again. • Clean untracked files: • git clean -d <path>
  • 20. TAG • git tag -a v1.0.0 -m "Creating the first release candidate” • git show v1.0.0
  • 21. GITHUB • Normal Commercial membership. • Star, watch and follow. • pulse.
  • 22. REFERENCES • gitready.com • git-scm.com • Book: version control with git 2nd edition - O’Reilly. • wikipedia | en.wikipedia.org/wiki/Git_(software) • github.com
  • 24. GIT COMMIT -M “THANK YOU”