Follow these steps to submit your assignment to the "First-challenge" folder in the repository. This guide assumes you already have a GitHub account and Git installed on your computer.
- Go to the repository on GitHub.
- Click the "Fork" button at the top right corner of the page. This will create a copy of the repository in your own GitHub account.
- Open your terminal or Git Bash.
- Clone your forked repository to your local machine using the following command:
Use the url copied from the ssh option of the repository.
git clone url
- Navigate to the repository directory on your local machine:
cd Repository-Name
- Create a new branch for your assignment:
Replace
git branch your-branch-name
your-branch-name
with a descriptive name for your branch. - Switch to the new branch:
git checkout your-branch-name
- Navigate to the First-challenge folder:
cd First-challenge
- Create a new folder named after your team:
mkdir YOUR_TEAM_NAME
- Replace YOUR_TEAM_NAME with the name of your team.
Add your assignment files to this folder. At a minimum, if you have chosen Python as we recommended, you must include:
- An report that includes the code with explanations interspersed in the text.
- A requirements.txt file listing all dependencies required to run your code.
- Stage your changes:
git add .
- Commit your changes with a descriptive message:
git commit -m "Add assignment for First-challenge"
- Push your branch to your forked repository:
git push origin your-branch-name
- Go to your forked repository on GitHub.
- Click on the "Compare & pull request" button.
- Make sure the base repository is set to the original repository and the base branch is set to the main branch.
- Provide a descriptive title and comment for your pull request.
- Click on the "Create pull request" button.
- Wait for your pull request to be reviewed.
- Make any requested changes and push them to your branch if necessary.
Congratulations! You have successfully submitted your assignment via a pull request.
For more details, github docs is the answer: