SlideShare una empresa de Scribd logo
1 de 66
Descargar para leer sin conexión
GITHUBPARTY!
Thursday, 8 October, 2015
Savoir Faire Linux, Montreal
https://www.savoirfairelinux.com/
GITHUBPARTY
| Françoise Provencher  francoiseprovencher
INTRODUCTION
Link to .
Finding a project to collaborate in
the presentation
https://github.com/explore
https://github.com/showcases
GITHUBPARTY
| | Blanca Mancilla  bluciam  @Blanckus
PARTS
0.
1.
2.
3.
4.
5.
Introduction
Bare Basics
Sharing
Collaborating
Your turn
What is next?
Do you have your account already?
PART0
https://github.com/
Git is a free and open source distributed version control
system designed to handle everything from small to very
large projects with speed and efficiency.
GIT
https://git-scm.com/
Git is a widely used version control system for software
development. It is a distributed revision control system
with an emphasis on speed, data integrity, and support
for distributed, non-linear workflows.
GIT
https://en.wikipedia.org/wiki/Git
GIT
More technical definition and to really understand Git:
Setting up Git:
https://git-scm.com/book/en/v2/Getting-Started-Git-Basics
https://help.github.com/articles/set-up-git/
GITHUB
GitHub is a Web-based Git repository hosting service. It
offers a lot of the functionality of Git as well as adding its
own features.
https://en.wikipedia.org/wiki/GitHub
PARTI
Repositories
Forks
Issues
Branches
Local changes
Commits
A repository is the basic unit of GitHub, most commonly
a single project. Repositories can contain folders and
files, including images – anything your project needs.
REPOSITORIES
REPOSITORIES
https://github.com/bluciam/helloworld_pyladiesMTL
PARTI
Forks
Issues
Branches
Local changes
Commits
Repositories
A fork is a copy of a repository. Forking a repository
allows you to freely experiment with changes without
affecting the original project.
FORKS
Most commonly, forks are used to either propose
changes to someone else's project or to use someone
else's project as a starting point for your own idea.
FORKS
LET'SCREATEAFORK
1. Login into your GitHub account.
2. Head over to
3. Find the Fork tab and click on it.
https://github.com/bluciam/helloworld_pyladiesMTL
Full instructions with commands for local repository:
FORKS
https://help.github.com/articles/fork-a-repo/
FORKS
Synchronizing your fork with the master repository.
There are two ways:
Making a pull-request into your own repository.
Using the command line.
PARTI
Issues
Branches
Local changes
Commits
Repositories
Forks
ISSUES
An Issue is a note on a repository about something that
needs attention. It could be a bug, a feature request, a
question or lots of other things.
PyLadies Montreal needs a logo!
ISSUES
LET'SCREATEANISSUE
https://github.com/bluciam/helloworld_pyladiesMTL
ISSUES
YOURTURN!
Click on the issues link, to the right.
Click on New Issue.
Go Wild! Create! Comment!
https://github.com/bluciam/helloworld_pyladiesMTL
PARTI
Branches
Local changes
Commits
Repositories
Forks
Issues
Branching is the way to work on different parts of a
repository at one time.
BRANCHES
BRANCHES
BRANCHES
LET'SCREATEABRANCH
1. Head over to
2. Find the Branch: master tab and click on it.
3. Enter the name of the new branch: translate-README.
https://github.com/<your-github-handle>
/helloworld_pyladiesMTL
Full instructions at
BRANCHES
https://help.github.com/articles/creating-and-deleting-
branches-within-your-repository/
PARTI
Local changes
Commits
Repositories
Issues
Forks
Branches
MAKEACHANGE
CHANGEISGOOD!
CHANGEBRINGSHAPPINESS!
1. Head over to
2. Click on the issues link.
3. Choose an issue.
https://github.com/bluciam/helloworld_pyladiesMTL
MAKEACHANGE
LET'SDOIT!
1. Head over to your own account.
2. Choose the branch you want to make the change in.
3. You can either add a file or modify an existing one.
4. Go wild!
https://github.com/<your-github-handle>
/helloworld_pyladiesMTL
Changes to a file can be done by clicking on the pencil
icon in the upper right corner.
Add a file by clicking on the plus sign after the directory
name.
MAKEACHANGE
LET'SDOIT!
MAKEACHANGE
Make a change in the master branch.
And in another branch.
In the same line.
Commit the changes separately.
PARTI
Commits
Repositories
Issues
Forks
Branches
Local changes
Commits are the heart of git and GitHub. They are the
saved changes on the repository.
COMMITYOURCHANGES
Each commit should have a message:
1. Think that you are writing an email to a future
contributor who will read this five years from now.
2. Explain why the change.
3. Remeber that git can already answer who, when and
what, so no need to add these.
COMMITYOURCHANGES
Make your changes.
Add a one-liner summarizing the change.
Add a summary of the change.
Click on the Commit changesbutton.
That's it!
Commit messages form a story of the project.
PARTI
Repositories
Issues
Forks
Branches
Local changes
Commits
BREATHE!
SMILE!
PART2
Sharing changes!
Pull request
Comparing differences
Blame
Synching your fork
Pull Requests are the heart of collaboration on GitHub.
When you make a pull request, you’re proposing your
changes and requesting that someone pull in your
contribution - aka merge them into their branch.
PULLREQUEST
As soon as you make a change, you can open a Pull
Request. People use Pull Requests to start a discussion
about commits (code review) even before the code is
finished. This way you can get feedback as you go or help
when you’re stuck.
PULLREQUEST
PULLREQUEST
LET'SCREATEAPULLREQUEST
1.
2. Find the link to Pull Request on the right.
3. Click on it.
4. Click on the New pull request button.
5. Click on Create pull request.
https://github.com/<your-github-handle>
/helloworld_pyladiesMTL
You are presented with a screen to enter a message and
to choose which branch to ask the request on, if there
are many choices.
Instructions at
PULLREQUEST
https://help.github.com/articles/creating-a-pull-request/
The best is to see it in action...
PULLREQUEST
LET'SSEEIT!
PART2
Comparing differences
Blame
Synching your fork
Pull request
It is another way to get to a Pull Request.
COMPARINGCHANGES
COMPARINGCHANGES
1. Head over to your own account.
2. Find the green button at the top next to the Branch
button. That will show you directly the differences
between the main repository and your local changes.
https://github.com/<your-github-handle>
/helloworld_pyladiesMTL
Again, the best is to see it in action...
COMPARINGCHANGES
LET'SSEEIT!
Click on the number next to the fork button to see the
network graph.
COMPARINGCHANGES
PART2
Blame
Synching your fork
Pull request
Comparing differences
BLAME
The blamecommand is a Git feature, designed to help
you determine who made changes to a file.
Despite its negative-sounding name, git blameis
actually pretty innocuous; its primary function is to point
out who changed which lines in a file, and why. It can be
a useful tool to identify changes in your code.
Instructions at
BLAME
https://help.github.com/articles/using-git-blame-to-trace-
changes-in-a-file/
PART2
Synching your fork
Pull request
Comparing differences
Blame
SYNCHINGYOURFORK
Click on the compare button.
Click on Compare across forks.
Choose the branches that are difference.
PART2
Pull request
Comparing differences
Blame
Synching your fork
BREATHE!
SMILE!
PART3
Collaboration!
Create a repository
Add collaborators
Be Social
CREATEAREPOSITORY
We are going to create a super heroine project!
We will call it super-heroines-pyladiesMTL.
Let's do it!
PART3
Add collaborators
Be Social
Create a repository
ADDCOLLABORATORS
https://help.github.com/articles/adding-collaborators-to-
a-personal-repository/
PART3
Be Social
Create a repository
Add collaborators
BESOCIAL
https://help.github.com/articles/be-social/
PART3
Create a repository
Add collaborators
Be Social
PART4
Your turn!
Create your own repository
Ideas:
Python tutorial exercises
Your thesis
Talks
Your CV
Your coding project
WHATISNEXT?
WHATISNEXT?
Interaction between the git command line and github,
that is, your local repository and repo in the cloud.
GITHUBPARTY
| Françoise Provencher  francoiseprovencher
| | Blanca Mancilla  bluciam  @Blanckus

Más contenido relacionado

La actualidad más candente

9 Things You Didn't Know You Could Do with Your Blog WPSLC
9 Things You Didn't Know You Could Do with Your Blog WPSLC9 Things You Didn't Know You Could Do with Your Blog WPSLC
9 Things You Didn't Know You Could Do with Your Blog WPSLC
Chris Reynolds
 

La actualidad más candente (20)

Github
GithubGithub
Github
 
Git essentials
Git essentialsGit essentials
Git essentials
 
Introduction to Git (even for non-developers)
Introduction to Git (even for non-developers)Introduction to Git (even for non-developers)
Introduction to Git (even for non-developers)
 
Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1
 
Introduction to git and Github
Introduction to git and GithubIntroduction to git and Github
Introduction to git and Github
 
9 Things You Didn't Know You Could Do with Your Blog WPSLC
9 Things You Didn't Know You Could Do with Your Blog WPSLC9 Things You Didn't Know You Could Do with Your Blog WPSLC
9 Things You Didn't Know You Could Do with Your Blog WPSLC
 
A prentation on github
A prentation on githubA prentation on github
A prentation on github
 
16 Git
16 Git16 Git
16 Git
 
Hacktoberfest 2020 - Open source for beginners
Hacktoberfest 2020 - Open source for beginnersHacktoberfest 2020 - Open source for beginners
Hacktoberfest 2020 - Open source for beginners
 
Introduction to Git (even for non-developers!)
Introduction to Git (even for non-developers!)Introduction to Git (even for non-developers!)
Introduction to Git (even for non-developers!)
 
Introduction to GitHub (workshop)
Introduction to GitHub (workshop)Introduction to GitHub (workshop)
Introduction to GitHub (workshop)
 
Intro to Git and GitHub
Intro to Git and GitHubIntro to Git and GitHub
Intro to Git and GitHub
 
Git and Gerrit Code Review - Tech Talk - 2010_09_23
Git and Gerrit Code Review - Tech Talk - 2010_09_23Git and Gerrit Code Review - Tech Talk - 2010_09_23
Git and Gerrit Code Review - Tech Talk - 2010_09_23
 
Introduction to Git / Github
Introduction to Git / GithubIntroduction to Git / Github
Introduction to Git / Github
 
Introduction to GitHub
Introduction to GitHubIntroduction to GitHub
Introduction to GitHub
 
Gerrit Code Review with GitHub plugin
Gerrit Code Review with GitHub pluginGerrit Code Review with GitHub plugin
Gerrit Code Review with GitHub plugin
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Git and Github Session
Git and Github SessionGit and Github Session
Git and Github Session
 
Workshop on Git and GitHub
Workshop on Git and GitHubWorkshop on Git and GitHub
Workshop on Git and GitHub
 
OSGi Versioning & Testing
OSGi Versioning & TestingOSGi Versioning & Testing
OSGi Versioning & Testing
 

Destacado

TransLaw - Intermodal 1999
TransLaw - Intermodal 1999TransLaw - Intermodal 1999
TransLaw - Intermodal 1999
David Pickeral
 
150804-DTAE-Brochure-Master Plan-Cargo
150804-DTAE-Brochure-Master Plan-Cargo150804-DTAE-Brochure-Master Plan-Cargo
150804-DTAE-Brochure-Master Plan-Cargo
Douglas Tobin
 
Surviving the Future with Drought Preparedness
Surviving the Future with Drought PreparednessSurviving the Future with Drought Preparedness
Surviving the Future with Drought Preparedness
taliean
 

Destacado (20)

TransLaw - Intermodal 1999
TransLaw - Intermodal 1999TransLaw - Intermodal 1999
TransLaw - Intermodal 1999
 
Numbers מספרים
Numbers מספריםNumbers מספרים
Numbers מספרים
 
Logo Project *In Progress*
Logo Project *In Progress*Logo Project *In Progress*
Logo Project *In Progress*
 
Redes
RedesRedes
Redes
 
Tienda naturista
Tienda naturistaTienda naturista
Tienda naturista
 
Иллюстрации к тексту
Иллюстрации к тексту Иллюстрации к тексту
Иллюстрации к тексту
 
150804-DTAE-Brochure-Master Plan-Cargo
150804-DTAE-Brochure-Master Plan-Cargo150804-DTAE-Brochure-Master Plan-Cargo
150804-DTAE-Brochure-Master Plan-Cargo
 
Lessons Learned from a 24 Hour Live Telethon (For Marketers)
Lessons Learned from a 24 Hour Live Telethon (For Marketers)Lessons Learned from a 24 Hour Live Telethon (For Marketers)
Lessons Learned from a 24 Hour Live Telethon (For Marketers)
 
Thais marin
Thais marinThais marin
Thais marin
 
RESUME R Friend
RESUME R FriendRESUME R Friend
RESUME R Friend
 
الحياة حق اعدام الشباب، اعدام للمستقبل
الحياة حق  اعدام الشباب، اعدام للمستقبلالحياة حق  اعدام الشباب، اعدام للمستقبل
الحياة حق اعدام الشباب، اعدام للمستقبل
 
петербургское барокко
петербургское бароккопетербургское барокко
петербургское барокко
 
Impact of the Neutrophil Response to Granulocyte Colony-Stimulating Factor o...
Impact of the Neutrophil Response to Granulocyte Colony-Stimulating Factor o...Impact of the Neutrophil Response to Granulocyte Colony-Stimulating Factor o...
Impact of the Neutrophil Response to Granulocyte Colony-Stimulating Factor o...
 
Frozen
FrozenFrozen
Frozen
 
Nonprofit Case Study Presentation
Nonprofit Case Study Presentation Nonprofit Case Study Presentation
Nonprofit Case Study Presentation
 
Surviving the Future with Drought Preparedness
Surviving the Future with Drought PreparednessSurviving the Future with Drought Preparedness
Surviving the Future with Drought Preparedness
 
Les 3
Les 3Les 3
Les 3
 
TOUR10 - BRAZIL - VILLANUEVA
TOUR10 - BRAZIL - VILLANUEVATOUR10 - BRAZIL - VILLANUEVA
TOUR10 - BRAZIL - VILLANUEVA
 
2011symposium
2011symposium2011symposium
2011symposium
 
Audretta 6-2015 rev
Audretta 6-2015 revAudretta 6-2015 rev
Audretta 6-2015 rev
 

Similar a Git hub party-20151008

Git Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdfGit Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdf
uzair
 

Similar a Git hub party-20151008 (20)

Nina Zakharenko - Introduction to Git - Start SLC 2015
Nina Zakharenko - Introduction to Git - Start SLC 2015Nina Zakharenko - Introduction to Git - Start SLC 2015
Nina Zakharenko - Introduction to Git - Start SLC 2015
 
GITHUB
GITHUBGITHUB
GITHUB
 
Version control git day02
Version control   git day02Version control   git day02
Version control git day02
 
Technical Seminar Series: GIT Pull Requests Best Practices
Technical Seminar Series:  GIT Pull Requests Best PracticesTechnical Seminar Series:  GIT Pull Requests Best Practices
Technical Seminar Series: GIT Pull Requests Best Practices
 
Contributing to the AtoM documentation
Contributing to the AtoM documentationContributing to the AtoM documentation
Contributing to the AtoM documentation
 
Do you git it
Do you git it Do you git it
Do you git it
 
Git Pull Requests
Git Pull RequestsGit Pull Requests
Git Pull Requests
 
Version control git day01
Version control   git day01Version control   git day01
Version control git day01
 
Version control git day01
Version control   git day01Version control   git day01
Version control git day01
 
Git Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdfGit Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdf
 
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 for (collaborative) writing
Git for (collaborative) writingGit for (collaborative) writing
Git for (collaborative) writing
 
Git_tutorial.pdf
Git_tutorial.pdfGit_tutorial.pdf
Git_tutorial.pdf
 
Advance workshop on git
Advance workshop on gitAdvance workshop on git
Advance workshop on git
 
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
 
BitBucket presentation
BitBucket presentationBitBucket presentation
BitBucket presentation
 
Git single branch
Git single branchGit single branch
Git single branch
 
[2015/2016] Collaborative software development with Git
[2015/2016] Collaborative software development with Git[2015/2016] Collaborative software development with Git
[2015/2016] Collaborative software development with Git
 
A Git MVP Workflow
A Git MVP WorkflowA Git MVP Workflow
A Git MVP Workflow
 

Último

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Último (20)

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...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
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
 
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
 
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...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
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
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 

Git hub party-20151008