RepositoryÂ (slang: Repo):
Location onÂ githubÂ that stores a snapshot of a project. It includes: snapshots of changes andÂ commitsÂ in a history.
Names of Repos:
- UpstreamÂ points to the source projects on github.
- OriginÂ points to Â theÂ forked copy inÂ github of the source.
- MasterÂ is the local copy on your development system. So when you work locally, you can mergeÂ masterÂ withÂ origin/master
Public and Private:
PublicÂ repos are visible to anyone, including users who are not logged in to github.Â PrivateÂ repos are only available to members of a working team.
- ForkÂ a project on github
- CloneÂ your github fork to your computer/local development area (this means you now own two repos: one on github, one on your computer.
- Create a topicÂ branchÂ for your own work in your local clone
- CommitÂ changes to your github fork
- send aÂ pull requestÂ back to the original project
In git, other repos that it knows about are calledÂ remotes. When you clone a repo, git saves the parent repo under the nameÂ origin, so origin on your computer repo will point to your personal fork on github
Great Git Learning resources:
- My favorite by far! Dont let the name scare you, it is excellent and easy to understand : Pro Git by ChaconÂ http://git-scm.com/book
- Atlassian TutorialÂ https://www.atlassian.com/git/tutorial/git-basics
- Git the Simple GuideÂ http://rogerdudler.github.io/git-guide/
- git and github video tutorialsÂ https://www.youtube.com/playlist?list=PLEACDDE80A79CE8E7