Chapter 3. Git & GitHub Project Setup
To initiate a project with Git and GitHub, you need to create Local and Remote Repositories that will be used to save your coding and share your codes with others.
At this step, you’ll also need to connect the Local Repository with the Remote Repository. Depending on your project situation, the project setup approach can be different.
In this chapter, we'll explain the project setup approaches in the three cases below:
- Case 1. As a project initiator (owner)
- Case 2. As a project member (collaborator)
- Case 3. As a non-project member (creating a new project using a copy of an existing project)
Topics covered in this chapter are the following.
Lessons in this chapter
- Three Cases in Git & GitHub Project Setup
- Git & GitHub Project Setup Overview in Different Cases
- Building Remote Collaboration Practice Environment
- Project Initiator – Key Steps To Launch Git Project
- Project Initiator – Create Local Repository (git init)
- Project Initiator – Make the First Commit
- Project Initiator – .gitignore File
- Project Initiator – Create Remote Repository
- Project Initiator – Link Between Remote and Local Repositories (git remote add)
- Project Initiator – Upload Local Repository to Remote Repository (git push)
- Project Initiator – Grant Remote Repository Access to Project Members
- Project Member – Start Project As Collaborator
- Project Member – Create Copy of Project Code on Local Computer (git clone)
- Non-Member – Start Project With Replica of Existing Repository (Fork)
- Fork vs. Clone