Thank you for your interest in contributing to the SpacecraftDynamics repository! We appreciate your help in improving the project. Please follow the guidelines below to ensure a smooth collaboration.
-
Fork the Repository:
- Navigate to the SpacecraftDynamics repository.
- Click on the "Fork" button to create your own copy of the repository.
-
Clone Your Fork:
- Clone your fork to your local machine using the following command:
git clone https://github.com/your-username/SpacecraftDynamics.git
- Replace
your-username
with your GitHub username.
- Clone your fork to your local machine using the following command:
-
Add the Main Repository as a Remote:
- Navigate to your local repository:
cd SpacecraftDynamics
- Add the main repository as a remote named
upstream
:git remote add upstream https://github.com/angadhn/SpacecraftDynamics.git
- Navigate to your local repository:
-
Create a New Branch:
- Create a new branch for your changes:
git checkout -b your-branch-name
- Replace
your-branch-name
with a descriptive name for your branch.
- Create a new branch for your changes:
-
Make Your Changes:
- Make your changes to the code or documentation.
- Commit your changes with a descriptive commit message:
git add . git commit -m "Description of the changes made"
-
Push to Your Fork:
- Push your changes to your fork on GitHub:
git push origin your-branch-name
- Push your changes to your fork on GitHub:
-
Create a Pull Request:
- Navigate to your fork on GitHub.
- Click on the "New pull request" button.
- Ensure the base repository is
angadhn/SpacecraftDynamics
and the base branch ismain
. - Select your branch as the compare branch.
- Add a title and description for your pull request, then click "Create pull request".
-
Fetch and Merge Updates from Upstream:
- Fetch the latest changes from the main repository:
git fetch upstream
- Merge the changes into your local
main
branch:git checkout main git merge upstream/main
- Push the updated
main
branch to your fork:git push origin main
- Fetch the latest changes from the main repository:
-
Update Your Working Branch:
- If you are working on a different branch, merge the latest
main
branch into your working branch:git checkout your-branch-name git merge main
- If you are working on a different branch, merge the latest
The main
branch is protected to ensure the stability and integrity of the codebase. The following rules are in place:
- Require pull request reviews before merging: All changes must be reviewed.
- Require status checks to pass before merging: All CI/CD checks must pass.
- Require branch to be up-to-date before merging: Branch must be up-to-date with
main
. - Prevent force pushes: Force pushes are not allowed.
- Prevent deletions: The
main
branch cannot be deleted.
- Review: Your pull request will be reviewed by other contributors. They may suggest changes or ask questions.
- Merge: Once approved, your pull request will be merged into the
main
branch by a repository maintainer.
Thank you for your contributions! Your help is greatly appreciated.
If you have any questions or need further assistance, feel free to open an issue in the repository.
Happy coding!