To successfully complete the activity, attendees must perform the following steps:
-
Clone the Repository
- Fork the main repository to your GitHub account.
- Clone the forked repository to your local machine using:
git clone <your-forked-repo-url>
-
Go to the proper branch
- On the same branch that you have made during the session!
For eg 24CS20XXXXX
git checkout <full-roll-number>
- On the same branch that you have made during the session!
-
Task 1 : Add a New File
- Navigate to the project directory and add a specific file (e.g.,
<your-email>.py
):print("your-email-address")
- Replace
<your-email-address>
with your actual email. - Replace
<your-email>
with your email upto @.
- Replace
- Navigate to the project directory and add a specific file (e.g.,
-
Task 2 : Add your name in main.cpp file
-
Sync and pull from your branch.
-
Navigate to the main.cpp inside project directory
-
Add you name in contributor_name array
-
Note the decoded string after running the file.
string contributor_names[] = { "Manish", "Ayushman" };// add your name here
-
Use
https://www.programiz.com/cpp-programming/online-compiler/
to get the OUTPUT of the code!
-
-
Stash apply and Commit Changes
- Stash apply:
git stash apply
- Stage the new file:
git add <your-email>.py
- Commit the changes with a meaningful commit message:
git commit -m "Added file for email <your-email>"
-
Push Changes to Your Branch
- Push the branch to your forked repository:
git push origin <your-roll-number>
- Push the branch to your forked repository:
-
Create a Pull Request
- Go to the original repository on GitHub.
- Click Compare & Pull Request for your branch.
- Add a description summarizing your changes and submit the pull request.
-
Wait for Review and Merge
- The pull request will be reviewed by the instructor or team.
- Once approved, it will be merged into the main repository.
- The pull request should include the correctly named file
<your-email>.py
. - The file must contain your name, roll number, and a short introduction.
- Add your name in contributor_names array at main.cpp.
- Run the main.cpp & note down the secret message.
- The branch name must match your roll number.
- The pull request must not have merge conflicts with the main branch.
- Upload the noted secret message at this form https://forms.gle/vZUjYQtQkCQYieu78 for your attendance.