2023-04-05 16:00:30 +00:00
|
|
|
|
|
|
|
To contribute to this GitHub project, you can follow these steps:
|
|
|
|
|
|
|
|
1. Fork the repository you want to contribute to by clicking the "Fork" button on the project page.
|
|
|
|
|
|
|
|
2. Clone the repository to your local machine using the following command:
|
|
|
|
|
|
|
|
```
|
2023-04-12 09:07:50 +00:00
|
|
|
git clone https://github.com/<YOUR-GITHUB-USERNAME>/Auto-GPT
|
2023-04-05 16:00:30 +00:00
|
|
|
```
|
2023-04-14 18:36:19 +00:00
|
|
|
3. Install the project requirements
|
|
|
|
```
|
|
|
|
pip install -r requirements.txt
|
|
|
|
```
|
|
|
|
4. Install pre-commit hooks
|
|
|
|
```
|
|
|
|
pre-commit install
|
|
|
|
```
|
|
|
|
5. Create a new branch for your changes using the following command:
|
2023-04-05 16:00:30 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
git checkout -b "branch-name"
|
|
|
|
```
|
2023-04-14 18:36:19 +00:00
|
|
|
6. Make your changes to the code or documentation.
|
2023-04-05 16:00:30 +00:00
|
|
|
- Example: Improve User Interface or Add Documentation.
|
|
|
|
|
2023-04-06 11:20:57 +00:00
|
|
|
|
2023-04-14 18:36:19 +00:00
|
|
|
7. Add the changes to the staging area using the following command:
|
2023-04-05 16:00:30 +00:00
|
|
|
```
|
2023-04-09 12:58:05 +00:00
|
|
|
git add .
|
2023-04-05 16:00:30 +00:00
|
|
|
```
|
|
|
|
|
2023-04-14 18:36:19 +00:00
|
|
|
8. Commit the changes with a meaningful commit message using the following command:
|
2023-04-05 16:00:30 +00:00
|
|
|
```
|
|
|
|
git commit -m "your commit message"
|
|
|
|
```
|
2023-04-14 18:36:19 +00:00
|
|
|
9. Push the changes to your forked repository using the following command:
|
2023-04-05 16:00:30 +00:00
|
|
|
```
|
|
|
|
git push origin branch-name
|
|
|
|
```
|
2023-04-14 18:36:19 +00:00
|
|
|
10. Go to the GitHub website and navigate to your forked repository.
|
2023-04-05 16:00:30 +00:00
|
|
|
|
2023-04-14 18:36:19 +00:00
|
|
|
11. Click the "New pull request" button.
|
2023-04-05 16:00:30 +00:00
|
|
|
|
2023-04-14 18:36:19 +00:00
|
|
|
12. Select the branch you just pushed to and the branch you want to merge into on the original repository.
|
2023-04-05 16:00:30 +00:00
|
|
|
|
2023-04-14 18:36:19 +00:00
|
|
|
13. Add a description of your changes and click the "Create pull request" button.
|
2023-04-05 16:00:30 +00:00
|
|
|
|
2023-04-14 18:36:19 +00:00
|
|
|
14. Wait for the project maintainer to review your changes and provide feedback.
|
2023-04-05 16:00:30 +00:00
|
|
|
|
2023-04-14 18:36:19 +00:00
|
|
|
15. Make any necessary changes based on feedback and repeat steps 5-12 until your changes are accepted and merged into the main project.
|
2023-04-05 16:00:30 +00:00
|
|
|
|
2023-04-14 18:36:19 +00:00
|
|
|
16. Once your changes are merged, you can update your forked repository and local copy of the repository with the following commands:
|
2023-04-05 16:00:30 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
git fetch upstream
|
|
|
|
git checkout master
|
|
|
|
git merge upstream/master
|
|
|
|
```
|
|
|
|
Finally, delete the branch you created with the following command:
|
|
|
|
```
|
|
|
|
git branch -d branch-name
|
|
|
|
```
|
|
|
|
That's it you made it 🐣⭐⭐
|