SlideShare a Scribd company logo
1 of 49
Open Source Collaboration
with Git and GitHub
SaravanaMuthu Aka CF Mitrah.
Shamelessly copied slides from other
presentations.
Disclaimer
I am a hardcore ColdFusion Developer
I’m not a Git expert or pro 
No Source Control System =
This is also not source control...
Why you need it
•Your code will break (and you won't know why)
•Your hard drive will die
•Taking latest files from FTP is pain
Why you think you don't need it and are wrong
•I work alone (you will break your own code)
•My project is small
(projects grow – Facebook used to be 5 files)
Centralized
Centralized Version Control
• Traditional version control system
– Server with database
– Clients have a working version
• Examples
– CVS
– Subversion
– Visual Source Safe
• Challenges
– Multi-developer conflicts
– Client/server communication
Centralized Version Control :: Cons
Distributed Version Control
Distributed Version Control
• Authoritative server by
convention only
• Every working checkout
is a repository
• Get version control
even when detached
• Backups are trivial
• Other distributed
systems include
– Mercurial
– BitKeeper
– Darcs
– Bazaar
I'm an egoistical bastard, and I name
all my projects after myself.
First Linux, now git.
-Linus Torvalds
And Now
Git Advantages
• Resilience
– No one repository has more data than any other
• Speed
– Very fast operations compared to other VCS (I’m looking at you CVS
and Subversion)
• Space
– Compression can be done across repository not just per file
– Minimizes local size as well as push/pull data transfers
• Simplicity
– Object model is very simple
• Large user base with robust tools
1. Fast
Local
2. Local
Distributed
3. Distributed
3. Cheap Branching
Branching
Any Workflow
4.Many Workflows
Failboat.
It’s not perfect.
The downsides
• Complexity
• Windows FTL
• What's an IDE? (but see egit for Eclipse, plus
Vim and Emacs support, and GUIs)
• Still frequent releases
•Cygwin – build yourself
•Ubuntu – use Git PPA
The Staging Area
Integration Manager
Benevolent Dictator
Some Commands
• Getting a Repository
– git init
– git clone
• Commits
– git add
– git commit
• Getting information
– git help
– git status
– git diff
– git log
– git show
Now with git goodness as well
1. Working on your own projects
2. Helping/ Contribute other OSS
projects
Create new repository
After created,
Everything you should know and do
Setting git before using github
• Generate SSH key in git ( Local )
• $ssh-keygen -t rsa -C "somkiat_spns@xxx.com"
Copy data in file id_rsa.pub to github
Manage data with github
• $ git config --global user.name "up1"
• $ git config --global user.email somkiat_spns@xxx.com
• $ git init
• $ touch README
• $ git add README
• $ git commit -m 'first commit'
• $ git remote add origin git@github.com:up1/----
hello_tarad.git
• $ git push -u origin master
Manage data with github ( demo )
Manage data with github (demo)
See result at github, Work !!
How to Contribute
1. Fork a repository at GitHub
2. Clone and connect your local repository
3. Write tests, implement functionality
4. Commit your local changes
5. Push your changes to your fork
6. Make a pull request
7. Profit!!
Very good series of blog posts by a CFML developer on Git
workflow to contribute to other open source projects.
http://www.silverwareconsulting.com/index.cfm/Git-Workflow
progit.org
http://git-scm.com

More Related Content

What's hot

What's hot (20)

Restful风格ž„web服务架构
Restful风格ž„web服务架构Restful风格ž„web服务架构
Restful风格ž„web服务架构
 
Seda与Java并行编程点滴
Seda与Java并行编程点滴Seda与Java并行编程点滴
Seda与Java并行编程点滴
 
Apex world 2018 continuously delivering APEX
Apex world 2018 continuously delivering APEXApex world 2018 continuously delivering APEX
Apex world 2018 continuously delivering APEX
 
Introduction to ASP.NET 5
Introduction to ASP.NET 5Introduction to ASP.NET 5
Introduction to ASP.NET 5
 
WordPress Workflows
WordPress WorkflowsWordPress Workflows
WordPress Workflows
 
Migration from ASP.NET MVC to ASP.NET Core
Migration from ASP.NET MVC to ASP.NET CoreMigration from ASP.NET MVC to ASP.NET Core
Migration from ASP.NET MVC to ASP.NET Core
 
SenchaCon 2016: Develop, Test & Deploy with Docker - Jonas Schwabe
SenchaCon 2016: Develop, Test & Deploy with Docker - Jonas Schwabe SenchaCon 2016: Develop, Test & Deploy with Docker - Jonas Schwabe
SenchaCon 2016: Develop, Test & Deploy with Docker - Jonas Schwabe
 
WSO2 API Manager Reference Architecture for Pivotal Cloud Foundry
WSO2 API Manager Reference Architecture for Pivotal Cloud FoundryWSO2 API Manager Reference Architecture for Pivotal Cloud Foundry
WSO2 API Manager Reference Architecture for Pivotal Cloud Foundry
 
Infinum Android Talks #09 - DBFlow ORM
Infinum Android Talks #09 - DBFlow ORMInfinum Android Talks #09 - DBFlow ORM
Infinum Android Talks #09 - DBFlow ORM
 
What's new in MySQL 5.5? FOSDEM 2011
What's new in MySQL 5.5? FOSDEM 2011What's new in MySQL 5.5? FOSDEM 2011
What's new in MySQL 5.5? FOSDEM 2011
 
Advance java session 2
Advance java session 2Advance java session 2
Advance java session 2
 
Mini Training Flyway
Mini Training FlywayMini Training Flyway
Mini Training Flyway
 
ASP.NET Core 1.0
ASP.NET Core 1.0ASP.NET Core 1.0
ASP.NET Core 1.0
 
Database migrations with Flyway and Liquibase
Database migrations with Flyway and LiquibaseDatabase migrations with Flyway and Liquibase
Database migrations with Flyway and Liquibase
 
Laravel introduction
Laravel introductionLaravel introduction
Laravel introduction
 
WSO2 API Manager Reference Architecture for DC/OS
WSO2 API Manager Reference Architecture for DC/OSWSO2 API Manager Reference Architecture for DC/OS
WSO2 API Manager Reference Architecture for DC/OS
 
Bring Order to the Chaos: Take the MVC Plunge
Bring Order to the Chaos: Take the MVC PlungeBring Order to the Chaos: Take the MVC Plunge
Bring Order to the Chaos: Take the MVC Plunge
 
Laravel and CodeIgniter: pros & cons
Laravel and CodeIgniter: pros & consLaravel and CodeIgniter: pros & cons
Laravel and CodeIgniter: pros & cons
 
Integration Of Mulesoft and Apache Active MQ
Integration Of Mulesoft and Apache Active MQIntegration Of Mulesoft and Apache Active MQ
Integration Of Mulesoft and Apache Active MQ
 
美团点评技术沙龙08 - 分布式监控系统实践
美团点评技术沙龙08 - 分布式监控系统实践美团点评技术沙龙08 - 分布式监控系统实践
美团点评技术沙龙08 - 分布式监控系统实践
 

Viewers also liked

Belles Photos
Belles PhotosBelles Photos
Belles Photos
jagged
 
On Wikis gadla-summer2011-event
On Wikis gadla-summer2011-eventOn Wikis gadla-summer2011-event
On Wikis gadla-summer2011-event
Stella Porto
 

Viewers also liked (20)

Belles Photos
Belles PhotosBelles Photos
Belles Photos
 
Career @ UMUC for FSA-MS
Career @ UMUC for FSA-MSCareer @ UMUC for FSA-MS
Career @ UMUC for FSA-MS
 
On Wikis gadla-summer2011-event
On Wikis gadla-summer2011-eventOn Wikis gadla-summer2011-event
On Wikis gadla-summer2011-event
 
Mde Presentation Semana EAD 2009
Mde Presentation Semana EAD 2009Mde Presentation Semana EAD 2009
Mde Presentation Semana EAD 2009
 
S.Porto Presentation at Annual EDEN Conference in Lisbon 2008
S.Porto Presentation at Annual EDEN Conference in Lisbon 2008S.Porto Presentation at Annual EDEN Conference in Lisbon 2008
S.Porto Presentation at Annual EDEN Conference in Lisbon 2008
 
DLA2009 Presentation S Porto
DLA2009 Presentation S PortoDLA2009 Presentation S Porto
DLA2009 Presentation S Porto
 
Presenting the MDE-UMUC/HBMeU cooperative programs
Presenting the MDE-UMUC/HBMeU cooperative programsPresenting the MDE-UMUC/HBMeU cooperative programs
Presenting the MDE-UMUC/HBMeU cooperative programs
 
USDLA 2010 - S.Porto
USDLA 2010 - S.PortoUSDLA 2010 - S.Porto
USDLA 2010 - S.Porto
 
De Overheid verbonden in Openheid
De Overheid verbonden in OpenheidDe Overheid verbonden in Openheid
De Overheid verbonden in Openheid
 
De Overheid Verbonden in Openheid
De Overheid Verbonden in OpenheidDe Overheid Verbonden in Openheid
De Overheid Verbonden in Openheid
 
earthquake
earthquakeearthquake
earthquake
 
Using social software in the MDE
Using social software in the MDEUsing social software in the MDE
Using social software in the MDE
 
Doorschakelen op Open Source
Doorschakelen op Open SourceDoorschakelen op Open Source
Doorschakelen op Open Source
 
Rubricas
RubricasRubricas
Rubricas
 
What's the Deal with Open Standards and Open Source Software
What's the Deal with Open Standards and Open Source SoftwareWhat's the Deal with Open Standards and Open Source Software
What's the Deal with Open Standards and Open Source Software
 
Manhattan Elite Prep Notice Negotiation Decision Chapter 3.3 5.4
Manhattan Elite Prep Notice Negotiation Decision Chapter 3.3 5.4Manhattan Elite Prep Notice Negotiation Decision Chapter 3.3 5.4
Manhattan Elite Prep Notice Negotiation Decision Chapter 3.3 5.4
 
중국대지진
중국대지진중국대지진
중국대지진
 
USDLA 2010 - S.Porto
USDLA 2010 - S.PortoUSDLA 2010 - S.Porto
USDLA 2010 - S.Porto
 
LPI Points on Facts and Focus
LPI  Points on Facts and FocusLPI  Points on Facts and Focus
LPI Points on Facts and Focus
 
10 redenen om LinuxWorld te bezoeken
10 redenen om LinuxWorld te bezoeken10 redenen om LinuxWorld te bezoeken
10 redenen om LinuxWorld te bezoeken
 

Similar to Git preso to valtech cfml team

August Webinar - Water Cooler Talks: A Look into a Developer's Workbench
August Webinar - Water Cooler Talks: A Look into a Developer's WorkbenchAugust Webinar - Water Cooler Talks: A Look into a Developer's Workbench
August Webinar - Water Cooler Talks: A Look into a Developer's Workbench
Howard Greenberg
 

Similar to Git preso to valtech cfml team (20)

Luis atencio on_git
Luis atencio on_gitLuis atencio on_git
Luis atencio on_git
 
Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners
 
CentOS at Facebook
CentOS at FacebookCentOS at Facebook
CentOS at Facebook
 
Make It Cooler: Using Decentralized Version Control
Make It Cooler: Using Decentralized Version ControlMake It Cooler: Using Decentralized Version Control
Make It Cooler: Using Decentralized Version Control
 
Git for folk who like GUIs
Git for folk who like GUIsGit for folk who like GUIs
Git for folk who like GUIs
 
Git presentation to some coworkers some time ago
Git presentation to some coworkers some time agoGit presentation to some coworkers some time ago
Git presentation to some coworkers some time ago
 
Git installation and configuration
Git installation and configurationGit installation and configuration
Git installation and configuration
 
Demo
DemoDemo
Demo
 
Hacking the way you work
Hacking the way you workHacking the way you work
Hacking the way you work
 
WordPress and Git
WordPress and GitWordPress and Git
WordPress and Git
 
Git 101 - Crash Course in Version Control using Git
Git 101 - Crash Course in Version Control using GitGit 101 - Crash Course in Version Control using Git
Git 101 - Crash Course in Version Control using Git
 
Hacking on WildFly 9
Hacking on WildFly 9Hacking on WildFly 9
Hacking on WildFly 9
 
Version Control Systems -- Git -- Part I
Version Control Systems -- Git -- Part IVersion Control Systems -- Git -- Part I
Version Control Systems -- Git -- Part I
 
Hacking on WildFly 9
Hacking on WildFly 9Hacking on WildFly 9
Hacking on WildFly 9
 
O365Con18 - Git and GitHub - Rick van Rousselt
O365Con18 - Git and GitHub - Rick van RousseltO365Con18 - Git and GitHub - Rick van Rousselt
O365Con18 - Git and GitHub - Rick van Rousselt
 
Introduction to github using Egit
Introduction to github using EgitIntroduction to github using Egit
Introduction to github using Egit
 
August Webinar - Water Cooler Talks: A Look into a Developer's Workbench
August Webinar - Water Cooler Talks: A Look into a Developer's WorkbenchAugust Webinar - Water Cooler Talks: A Look into a Developer's Workbench
August Webinar - Water Cooler Talks: A Look into a Developer's Workbench
 
Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)
Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)
Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)
 
Gitgithub101slideshare 150922131830-lva1-app6891
Gitgithub101slideshare 150922131830-lva1-app6891Gitgithub101slideshare 150922131830-lva1-app6891
Gitgithub101slideshare 150922131830-lva1-app6891
 
Open up your platform with Open Source and GitHub
Open up your platform with Open Source and GitHubOpen up your platform with Open Source and GitHub
Open up your platform with Open Source and GitHub
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 

Git preso to valtech cfml team