- Fork this repository with all branches: https://github.com/ThorsAngerVaNeT/git-task. Don't forget to uncheck
Copy the master branch onlycheckbox. - 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
developbranch to yourmainbranch, and ignore the messageCan’t automatically merge - Describe PR like here
- Open RS App and login
- Go to
Cross-check: Submitpage - 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 thedevelopbranch- 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-gamebranch
1.1) Replace commit prefixfeatwithdocsinfeat(bullseye): add license and readmecommit title.
1.2) Splitfeat(bullseye): add gamecommit 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 styleThe #2-4 commit titles could vary.
1.3) Merge thebullseye-gamebranch into thedevelopbranch with the creation of a merge commit. -
cub-n-pup-gamebranch
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 widthThe #2 commit title could vary.
2.2) Merge squashedcub-n-pup-gamebranch todevelopbranch. -
menjabranch
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 center3.2) Rebase
menjabranch intodevelop. -
link-new-stylebranch
4.1) Cherry-pick all commits from thelink-new-stylebranch with references to original commits todevelopbranch. -
developbranch
5.1) Set up deployment to GH Pages from thedevelopbranch.
Maximum - 45 points
bullseye-gamebranch - total 15 points- there is no
feat(bullseye): add license and readmecommit and there isdocs(bullseye): add license and readmecommit - +5 points - there is no
feat(bullseye): add gameand there are 3 new commits in place of it for each file (index.html,style.css,script.js) - +5 points bullseye-gamebranch merged todevelopbranch with created merge commit - +5 points
- there is no
cub-n-pup-gamebranch - 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.csscommits and there is a new commit contains them and placed in place of them - +5 points - The squashed
cub-n-pup-gamebranch was merged with todevelopbranch, there is a squashed commit - +5 points
- there are no
menjabranch - 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` menjabranch was rebased intodevelopbranch - +5 points
- there are 4 commits in the following order (from the oldest to the newest) - +5 points:
link-new-stylebranch - total 5 points- all commits were cherry-picked to the
developbranch 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-gamebranch commits not in the order specified in Task 1.2 - -15 pointscub-n-pup-gamebranch commits not in the order specified in Task 2.1 - -10 pointsmenjabranch commits not in the order specified in Task 3.1 - -10 points