If you are a new dev on this project, welcome and feel free to reach out to me with any questions - Wesley Grant
-
Fork the repository: Go to the original repository on GitHub (in this case,
https://github.com/climate-tech-handbook/climate-tech-handbook) and click the "Fork" button in the top-right corner. This will create a copy of the repository under your GitHub account. -
Clone the forked repository: Clone the forked repository to your local machine using the following command:
git clone https://github.com/<your-github-username>/climate-tech-handbook.git
Replace <your-github-username> with your actual GitHub username.
- Navigate to the cloned repository: Change the directory to the cloned repository:
cd climate-tech-handbook
- Create a new branch: Create a new branch (e.g.,
field-guide) and switch to it:
git checkout -b field-guide
-
Make changes: Make the necessary changes in the files within your new branch (
field-guide). -
Commit the changes: Stage and commit the changes:
git add .
git commit -m "Add field guide content"
- Push the changes: Push the changes to your forked repository:
git push origin field-guide
- Switch to the main branch: Switch back to the
mainbranch in your local repository:
git checkout main
- Merge the changes: Merge the changes from the
field-guidebranch to themainbranch:
git merge field-guide
- Push the merged changes: Push the merged changes to your forked repository:
git push origin main
- Create a pull request: Create a pull request from your fork's
mainbranch to the original repository'smainbranch using theghcommand:
gh pr create --title "Field Guide 1.0" --body "First iteration of the list of suggested and alternative technologies we may find useful" --base main --head <your-github-username>:main --repo climate-tech-handbook/climate-tech-handbook
Replace <your-github-username> with your actual GitHub username.
This command specifies the base repository (the original climate-tech-handbook repository) using the --repo option. The pull request will be created from your fork's main branch to the original repository's main branch.
After running this command, the pull request will be created, and you can then collaborate with the project maintainers on the changes you've proposed.