Step by Step Guide to Collaborating with Git Desktop
Git Hub is a tool that facilitates responsible collaborative project management. It allows a team to create a repository for the game files and save, update, and access them responsibly. Git files can be accessed through the terminal, but Git Desktop is a GUI interface that is a little easier to use.
- Create an account on github.com.
- Download and install Git Hub Desktop
- Download and install Git LFS .Once Git LFS is installed open Git Bash and type "Git lfs install" and press Enter. This will enable Gits Large File Storage for your repositories.
- Read this to understand the shared repository model
- Create a new repository from an existing Unity folder on your desktop
- Make sure you select "Unity" from the Git Ignore dropdown list.
- Publish the repository to GitHub
- Go to Github.com and open the repository, click on the "Settings" button on the left of the menu bar, then click on "Collaborators" on the left and a pane will open where you can invite the rest of your team as collaborators.
Now your team can get to work. All members of the team should clone or download the initial repository to their desktop. This is the Master file. When one member of the team works on the local version of the game, GIt Desktop keeps a record of which files have changed. When that person has finished working and wants to show the work to the rest of the team, do the following:
resource for GDD labs compiled by e bertozzi, 11/19
- Under Current Branch, create a new branch, switch your changes to the new Branch
- Publish the branch to github
- Create a pull request - this allows you to compare changes to the master branch
- Invite your team members to review and test changes
- If everyone agrees with modifications, you can merge the branch into the master.