Project:
Level-8
, A-JavaDoc
, A-Gradle
, A-JUnit
Level-8
, A-JavaDoc
, A-Gradle
, A-JUnit
The A-JUnit
project increment given below can be done using Gradle or without using Gradle. It's easier if you choose to do it using Gradle.
This task is optional but strongly recommended.
To get a very basic sense of how to use Git in a team project, this exercise simulates a situation where some others are also writing code for your project. Here are the steps.
Although that repo was set up by the teaching team, you could have created one yourself -- all it requires you to do is to create a GitHub organization, create a repository inside it, push your code to it, and add other team members to that GitHub organization.
Alternatively, you could have added the team members as 'collaborators' to your own fork so that they can push code to your fork directly.
tweak-readme
to the remote repo (we have added such a branch to that repo already). Fetch that branch and merge it to your master
branch.
Here are the steps for doing that, using the Git command line.
upstream
:git remote add upstream https://github.com/nus-tic2002-AY2223S2/duke.git
master
branch, if you are not on it already:git checkout master
tweak-readme
from the remote upstream
:git fetch upstream tweak-readme
--no-ff
tells git not to use a fast-forward merge):git merge --no-ff upstream/tweak-readme
Alternatively see the panel see the panel below on how to pull a branch from another remote.
In this case, the remote to pull from is https://github.com/nus-tic2002-AY2223S2/duke.git
, and the repo to pull to is your local repo used for the project.
add-details-to-readme
to the same remote repo. Pull that one too and merge it. If there is a merge conflict, resolve it too.