-
Notifications
You must be signed in to change notification settings - Fork 4
1. How to Contribute
Stella edited this page Feb 17, 2016
·
2 revisions
Guide to git for FJF n00bs
- In Terminal, navigate to the working directory of your choice
- Enter the following command:
git clone https://github.com/FeedJonathanFoundation/ubisoft-game-lab - Navigate into the newly created repository:
cd ubisoft-game-lab - Replace your_branch with a more informative name and create a new branch:
git checkout -b <your_branch>
- Code!!!
- Once you're ready to merge your changes, run the following commands:
-
git add filename- Change filename to whatever files you changed and want to merge
- Please add a test scene, if applicable!
-
git commit -m "commit message"- Change commit message to a short description of what you changed in this commit
-
git push -u origin <your_branch>- Change your_branch to whatever you named your branch
- Create a new pull request on GitHub :)
- Navigate to the main repo
- Select under "Your recently pushed branches" the option to Compare & pull request
- Write a detailed description and create
- Assign appropriate tags under Labels, set the Milestone to the relevant sprint, and tester as Assignee
In order to update files on your branch with most up-to-date files:
- Switch to master locally
git checkout master - Pull changes
git pull - Switch back to your_branch
git checkout <your_branch> - Merge master into your branch
git merge master - Enter merge message and all that jazz
- Run
git branch -rto see all remote branches - Run
git checkout <remote_branch>, replacing remote_branch with the branch of your choice - Create a new branch to commit changes you create
git checkout -b <new-branch-name> - Test
- If it passes testing, the pull request for that branch can be merged. Or:
- Write a comment on the pull request with your suggestions
- Submit a new pull request with your changes