These tasks are designed to test your debugging skills, Git knowledge, and creativity. Please read carefully and follow the instructions.
-
Repository Setup: Make a private repository on GitHub/GitLab, and immediately add these IDs as collaborators to grant access:
darkknight0125
manikchadgal
Snehalgupta-07
-
Initial Commit: Commit all the initial files and instructions into your repository, and name that commit as
"Initial commit"
. -
Commit Frequency: Make commits regularly with meaningful commit messages.
-
Answer Files: Where required, add answers/outputs in a new file.
-
Academic Integrity: Plagiarism will be heavily penalized. All code and written work must be your own.
We will provide you some small buggy code snippets.
- Fix the codes so it runs correctly.
- Add the correct output in a new file named
task1_output.txt
. - Commit the fixed code along with output file.
We will provide a file story.txt
with some blanks.
Your task:
- Create a new branch for this task.
- Fill in the blanks with a sensible continuation of the story.
- Merge the new branch into your current working branch.
- Resolve any merge conflicts properly, ensuring both contributions are maintained.
Use git log
to find the hash of the very first commit in this repository.
- Write the full 40-character commit hash in a new file named
first_commit.txt
. - Commit this file.
- Create a new branch named
history-cleanup
. - Make a commit adding something.
- Make 3 more commits on top of it.
Now:
- Remove the first commit while keeping the later changes intact.
- Bonus (20 extra points): Ensure the original commit is completely removed from all branch history.
- Add screenshots of earlier commit history and cleaned up commit history for bonus points and explain the approach used.
Create a personal README.md
in your branch (separate from this main README
) with the following sections:
- A short introduction about yourself.
- Your hobbies.
- Tech stacks you’ve explored till now.
- Your strengths.
Bonus points: Add an appropriate meme at the end.
- Ensure all tasks are committed to your working branch (e.g.,
main
or a feature branch). - Push your branch to your remote private repository.
- Verify that the collaborators (
darkknight0125
,manikchadgal
,Snehalgupta-07
) have access to view and pull your repository.
Total Available Points: 90 (Tasks) + 10 (Additional Task) = 100 Points.