- Fork this repository with all branches: https://github.com/ThorsAngerVaNeT/git-task. Don't forget to uncheck
Copy the master branch only
checkbox. - Clone your newly created repo: https://github.com/<%your_github_username%>/git-task/
- Go to folder
git-task
- Suggestion: set up VSCode as your Git editor -
git config --global core.editor "code --wait"
Submit to RS App
- Create PR from your
develop
branch to yourmain
branch, and ignore the messageCan’t automatically merge
- Describe PR like here
- Open RS App and login
- Go to
Cross-check: Submit
page - Select your task (Git Task)
- Input link to your PR
- Press the submit button and enjoy
You have a repository with multiple branches:
main
- main branch of a repository with task requirements and descriptiondevelop
- branch that holds an actual state of our main pagemain-page-base
- branch that holds an initial design of the main page and already has been merged to thedevelop
branch- multiple feature branches:
bullseye-game
- branch with 5 commits of Bullseye Game by Elliot Genocub-n-pup-game
- branch with 6 commits of Cub n Pup Game by Dave DeSandromenja
- branch with 4 commits of Menja Game by Caleb Millerlink-new-style
- branch with 4 commits of the new style of the main page
Your task is to manipulate branches and commits like it is described in Task.
Resolving conflicts while merging/rebasing is a part of this task.
The preferable way of solving the task is by using Git CLI, but you could also use Git Graph
and Git Lense
VSCode extensions to visualize branches and so on.
The deployed page should be like in the demo and all games should work correctly too.
-
bullseye-game
branch
1.1) Replace commit prefixfeat
withdocs
infeat(bullseye): add license and readme
commit title.
1.2) Splitfeat(bullseye): add game
commit to 3 commits for each file (index.html
,style.css
,script.js
). They should be in place of the old commit, which means commits should be in the following order (from the oldest to the newest):1. docs(bullseye): add license and readme 2. feat(bullseye): add index.html 3. feat(bullseye): add style.css 4. feat(bullseye): add script.js 5. feat(bullseye): add link to game in main page 6. feat(bullseye): add external dependencies as local files 7. feat(bullseye): update main page style
The #2-4 commit titles could vary.
1.3) Merge thebullseye-game
branch into thedevelop
branch with the creation of a merge commit. -
cub-n-pup-game
branch
2.1) Merge 3 commits (feat(cub-n-pup): add index.html
,feat(cub-n-pup): add script.js
,feat(cub-n-pup): add style.css
) into 1 commit in place of them, commits should be in the following order (from the oldest to the newest):1. docs(cub-n-pup): add license and readme 2. feat(cub-n-pup): add cub-n-pup game sources 3. feat(cub-n-pup): add link to game in main page 4. feat(cub-n-pup): update main page style - specify width
The #2 commit title could vary.
2.2) Merge squashedcub-n-pup-game
branch todevelop
branch. -
menja
branch
3.1) Reorder commits of the branch to reverse order, commits should be in the following order (from the oldest to the newest):1. docs(menja): add license and readme 2. feat(menja): add game files 3. feat(menja): add link to game in main page 4. feat(menja): update main page style - add text-align center
3.2) Rebase
menja
branch intodevelop
. -
link-new-style
branch
4.1) Cherry-pick all commits from thelink-new-style
branch with references to original commits todevelop
branch. -
develop
branch
5.1) Set up deployment to GH Pages from thedevelop
branch.
Maximum - 45 points
bullseye-game
branch - total 15 points- there is no
feat(bullseye): add license and readme
commit and there isdocs(bullseye): add license and readme
commit - +5 points - there is no
feat(bullseye): add game
and there are 3 new commits in place of it for each file (index.html
,style.css
,script.js
) - +5 points bullseye-game
branch merged todevelop
branch with created merge commit - +5 points
- there is no
cub-n-pup-game
branch - total 10 points- there are no
feat(cub-n-pup): add index.html
,feat(cub-n-pup): add script.js
,feat(cub-n-pup): add style.css
commits and there is a new commit contains them and placed in place of them - +5 points - The squashed
cub-n-pup-game
branch was merged with todevelop
branch, there is a squashed commit - +5 points
- there are no
menja
branch - total 10 points- there are 4 commits in the following order (from the oldest to the newest) - +5 points:
1) `docs(menja): add license and readme` 2) `feat(menja): add game files` 3) `feat(menja): add link to game in main page` 4) `feat(menja): update main page style - add text-align center`
menja
branch was rebased intodevelop
branch - +5 points
- there are 4 commits in the following order (from the oldest to the newest) - +5 points:
link-new-style
branch - total 5 points- all commits were cherry-picked to the
develop
branch with references to original commits - +5 points
- all commits were cherry-picked to the
- there is a deployment at GH Pages - +5 points
- there is a PR to the original repository - -20 points
bullseye-game
branch commits not in the order specified in Task 1.2 - -15 pointscub-n-pup-game
branch commits not in the order specified in Task 2.1 - -10 pointsmenja
branch commits not in the order specified in Task 3.1 - -10 points