Everyone should have team3 git repository cloned already. Open terminal and
run git clone https://github.com/TheExploration/team3.git
-
Open the project folder 'team3'
-
Download the changes from the github repo (run everytime, before you work in Unity): Switch to the master branch with
git checkout master
. Then run:git pull
> downloads all the changes from the github and updates everything locally. -
Create a new branch with
git branch YOUR_BRANCH
BEFORE YOU OPEN UNITY. NEVER REUSE BRANCHES ALWAYS MAKE NEW ONE FOR CHANGES!, Switch to your branchgit checkout YOUR_BRANCH
-
Then you can code and make your changes!
-
To push your updated version to the Github, CLOSE UNITY FIRST, run
git checkout master
(switch branch), then rungit pull
(update the master branch if there were changes), and then switch back to your branch withgit checkout YOUR_BRANCH
-
then run
git add .
, thengit commit -m "update message"
, thengit merge master
, follow the instructions/resolve conflicts, then rungit push -u
and it should ask you to sign in to github. The first time you push a new branch git will say togit push --set-upstream origin YOUR_BRANCH
so just follow that. -
Then send a message in the discord and I will make a pull request. Or make a pull request yourself with YOUR_BRANCH -> master. THEN WE DELETE THE BRANCH AFTER IT IS MERGED.
-
Merge conflicts for the scene file use always use --take-ours.
To reset your local files to match the online Github project, delete your project folder and run git clone https://github.com/TheExploration/team3.git
to generate a new project folder.
Test
...