Skip to content
This repository was archived by the owner on Jan 27, 2025. It is now read-only.

Latest commit

 

History

History
74 lines (65 loc) · 2.23 KB

ParticipationGuide.md

File metadata and controls

74 lines (65 loc) · 2.23 KB

Participant Guide: Submitting Your Solution

Follow these steps to successfully submit your solution:

Step 1: Fork the Repository

  1. Click on the "Fork" button at the top right of the bootcamp repository page on GitHub.

Step 2: Clone Your Forked Repository

  1. Open your terminal or Git Bash.
git clone <your-forked-repo-link>
cd <repository-name>

Replace with the link to your forked repository and with the name of your cloned repository.

Step 3: Create a Branch

Create a branch using your name as its identifier.

git checkout -b <your-name-branch>

Step 4: Create a directory with your name and Navigate to Your Directory.

mkdir <FirstnameLastname>
cd <repository-name>

Step 5: Create a Subdirectory for the Day

Inside the repository, create a subdirectory for the specific day using the following command. Use a naming convention such as Day1.

mkdir Day1
cd Day1

Step 6: Create a Source File

In the day's subdirectory, create a source file for the first problem of the day. For example, for Day 1, create a file named 01.c. Ensure that every file name starts with one trailing zero.

code 01.c

Step 7: Write Your Solution Code

Open the source file using your preferred text editor or IDE and write your solution code.

Step 8: Stage and Commit Your Solution

Stage your changes and commit them with a descriptive message.

git add .
git commit -m "Your commit message"

Step 9: Push Changes to Your Forked Repository

Push your changes to your forked repository.

git push origin <your-name-branch>

Optional Steps: Update Your Forked Repository

If the original repository has been updated, you may want to pull those changes into your forked repository.

Pull the changes from the original repository.

git pull

Fetch the changes from the original repository.

git fetch upstream

Merge the changes into your local repository.

git merge upstream/main

Push the changes to your forked repository.

git push origin <your-branch-name>

That's it! Your solution is now submitted. Create a pull request on GitHub to notify the bootcamp organizers of your submission.

Happy coding! 🚀