This repository is dedicated to helping you learn about version control using Git and Github. Follow the steps below to make your first pull request and contribute to this project.
Click the "Fork" button on the upper right corner of the GitHub repository page.
Open your terminal and use the following command to clone the repository to your local machine:
git clone https://github.com/your-username/repository.git
- Change into the repository's directory:
cd repository
- Create a new branch for your changes:
git checkout -b new-branch-name
- Make the necessary changes to the code or add new files.
- Stage your changes:
git add .
- Commit the changes:
git commit -m "Descriptive message about the changes"
- Push your changes to the new branch on your forked repository:
git push origin new-branch-name
- Go to your forked repository on GitHub.
- Switch to the newly created branch.
- Click on the "New Pull Request" button.
- Provide a descriptive title and comment about your changes.
- Click "Create Pull Request."
- Wait for the repository owner to review your pull request.
- If changes are requested, make them on your local branch and push the changes.
- Once approved, your changes will be merged into the main repository.
- To keep your fork up-to-date with the original repository, add the original repository as a remote:
git remote add upstream https://github.com/original-username/repository.git
- Fetch the changes:
git fetch upstream
- Merge the changes into your local main branch:
git merge upstream/main
- Push the updated changes to your fork:
git push origin main