6. Do you have your account already?
PART0
https://github.com/
7. 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/
8. 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
9. 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/
10. 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
12. 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
15. 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.
16. 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
17. Full instructions with commands for local repository:
FORKS
https://help.github.com/articles/fork-a-repo/
18. FORKS
Synchronizing your fork with the master repository.
There are two ways:
Making a pull-request into your own repository.
Using the command line.
20. 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.
21. PyLadies Montreal needs a logo!
ISSUES
LET'SCREATEANISSUE
https://github.com/bluciam/helloworld_pyladiesMTL
22. ISSUES
YOURTURN!
Click on the issues link, to the right.
Click on New Issue.
Go Wild! Create! Comment!
https://github.com/bluciam/helloworld_pyladiesMTL
26. 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
30. 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
31. 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!
32. MAKEACHANGE
Make a change in the master branch.
And in another branch.
In the same line.
Commit the changes separately.
34. 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.
35. 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.
39. 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
40. 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
41. 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.
45. It is another way to get to a Pull Request.
COMPARINGCHANGES
46. 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
47. Again, the best is to see it in action...
COMPARINGCHANGES
LET'SSEEIT!
48. Click on the number next to the fork button to see the
network graph.
COMPARINGCHANGES
50. 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.