Follow these steps to successfully submit your solution:
- Click on the "Fork" button at the top right of the bootcamp repository page on GitHub.
- 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.
Create a branch using your name as its identifier.
git checkout -b <your-name-branch>mkdir <FirstnameLastname>
cd <repository-name>Inside the repository, create a subdirectory for the specific day using the following command. Use a naming convention such as Day1.
mkdir Day1
cd Day1In 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.cOpen the source file using your preferred text editor or IDE and write your solution code.
Stage your changes and commit them with a descriptive message.
git add .
git commit -m "Your commit message"Push your changes to your forked repository.
git push origin <your-name-branch>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 pullFetch the changes from the original repository.
git fetch upstreamMerge the changes into your local repository.
git merge upstream/mainPush 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! 🚀