How to edit the game - Group6OxCS/game GitHub Wiki
Initially
- Go to https://github.com/Group6OxCS/game. In the top-right corner there should be a button labeled fork (make sure you are logged in). Push that button, and wait for the process to finish.
- Next, if you don't have git installed yet, download it from https://git-scm.com/download
In the terminal, type
git clone https://github.com/yourusername/game.git(replaceyourusernamewith your username). Once that finishes, you will have a folder named game. - Navigate into that folder. Execute
git remote add upstream https://github.com/Group6OxCS/game.git. Make your changes!
Once you have made your changes
- When you are ready to share your changes, launch the terminal, and make sure that the current directory is the game folder. Run the commands
git add -u Assets/* ProjectSettings/* UnityPackageManager/*and thengit commit -m "your message goes here. Explain what you changed". - To push the changes to github run
git pushand give it your username and password. Then go to https://github.com/yourusername/game. A yellow bar should appear asking you about creating a pull request. Do what it says and once you have completed that I can merge your changes in with everyone else's. Everyone should then executegit pull upstreamin their local copy to receive those changes.
Note
To make your life easier, ALWAYS execute git pull upstream BEFORE making any changes.