Up and Running with Git Transcripts
Chapter: Introducing Git
Lecture: Forks, stars, and PRs, not a thing in git
Login or
purchase this course
to watch this video and the rest of the course contents.
0:00
If you go to git hub, that's where you do get things right is over on Git hub. Actually that is where most people do it but not everyone.
0:08
Nonetheless, if you go there and you go to a repository in your web browser you see all sorts of cool things. You see forks, you see stars,
0:17
you see pull requests. These are not a git thing, these are Git hub things. So just to be clear and git we don't have
0:26
the idea of starring a repository that's like bookmarks in the web. That's really all that is. Forking the repository is a way to make a copy
0:36
but then taking control of hosting that yourself. So for example if we click on fork, maybe I want to make changes to cPython,
0:46
I am not a core developer so I'm not allowed to directly commit back to the c Python repository under the Python organization.
0:55
But if I want to work with it, what I can do is fork it say over here to talk Python at talk Python I do have admin privileges.
1:04
I can set it up so I could write to this project. I make all my changes and then commit them back and if I decide it's valuable
1:11
to the larger community, I can then create what's called a pull request that will
1:17
open a discussion about pushing those changes actually back into c Python itself,
1:22
we're going to talk more about these in the teamwork and the pr section. But I just want to point out really quick pull requests.
1:29
Forks, Stars, these are concepts that Git hub has layered on top of Git is not exactly a git thing, but they are awesome and incredibly empowering.