-
Notifications
You must be signed in to change notification settings - Fork 1
Contributing to Repo Guide
Ethan Cavill edited this page Jul 9, 2024
·
2 revisions
-
Request Access:
- Ensure you have requested and been approved as a collaborator for the project repository.
-
Set Up SSH Keys:
- Make sure your SSH keys are added to your GitHub account for secure access. Follow GitHub's guide on generating SSH keys.
-
Clone the Repository:
- Open your terminal and run:
git clone git@github.com:earcherc/deep-work.git cd deep-work
- Open your terminal and run:
-
Create a New Branch:
- Create a new branch for your feature:
git checkout -b feature/your-feature-name
- Create a new branch for your feature:
-
Push Your Branch:
- Push the branch to the repository:
git push origin feature/your-feature-name
- Push the branch to the repository:
-
Create a Pull Request:
- Go to the repository on GitHub and create a pull request from your feature branch to the
masterbranch.
- Go to the repository on GitHub and create a pull request from your feature branch to the
-
Review Process:
- Wait for the pull request to be reviewed by other collaborators.
- Address any comments or requested changes.
-
Rebase Commits:
- To ensure a linear git history with clean commit messages, use interactive rebase to clean up commits:
git rebase -i HEAD~n # where n is the number of commits you want to rebase
- To ensure a linear git history with clean commit messages, use interactive rebase to clean up commits:
-
Squash Commits:
- During the interactive rebase, mark which commits can be squashed to convey clear landmarks.
- This is to reduce commit bloat, e.g. multiple 'fix' commits can be squashed to an appropriate checkpoint.
-
Approval:
- Once all comments are addressed and commits are cleaned up, request final approval for the pull request.
- Ensure rebase commits and squash commits are allowed.
-
Merge:
- After approval, merge the pull request to the
masterbranch.
- After approval, merge the pull request to the
-
Interactive Rebase:
- You can use the interactive rebase tool in VSCode to clean up commits.
- For more information on using interactive rebase, refer to VSCode's interactive rebase guide.
Feel free to reach out if you have any questions or encounter any issues during the development process. Happy coding!