Welcome to the TARS-AI community! We're excited to have you contribute code, CAD files, documentation, or related content to this project. This guide is for folks new to GitHub to help you quickly get setup to collaborate on the project.
"Everybody good? Plenty of slaves for my robot colony?" -TARS
This project includes:
- Binary CAD files (e.g., STEP, STL)
- Code
- Documentation
- Related content
The primary repository is maintained by pyrater: TARS-AI on GitHub. Join us in discord https://discord.gg/uXkqkz3mJJ #repo for related questions and discussions.
- Fork the repo and submit pull requests (PRs) to pyrater/TARS-AI.
- Notify pyrater on Discord in the
#repo
channel if your PR is ready for review.
Never used Git or GitHub before? No problem! This section will guide you through the basic steps to get started.
- Sign up for a free GitHub account: Create an account.
- Go to TARS-AI on GitHub.
- Click the Fork button in the top-right corner.
- Select Create a new fork to make your own copy of the repository. This fork will look like
yourGithubUsername/TARS-AI
.
Why fork? Forking allows you to make changes in your own copy of the repository without affecting the original.
If you’re new to Git, you’ll need to install it on your local machine.
- Download Git: Git Downloads.
- Verify the installation by running
git --version
in your command line.
- Protect your account with multi-factor authentication (MFA): Set up MFA.
- Highly Recommended: Set up an SSH key for secure and streamlined operations: Generate an SSH Key.
- Open a terminal or command prompt.
- Navigate to the folder where you want to store the repository.
- Clone your fork:
git clone [email protected]:yourGithubUsername/TARS-AI.git
- Navigate into the project folder:
cd TARS-AI
- Check the remote URLs:
You should see your fork as
git remote -v
origin
. - Add pyrater's repository as the upstream remote:
git remote add upstream [email protected]:pyrater/TARS-AI.git
Why? This setup helps you fetch updates from the main repository to keep your fork up-to-date.
These are the standard steps for making contributions:
Always create a new branch for your work:
git checkout -b your-branch-name
Branches help you isolate changes and organize features.
- Add, edit, or delete files in the project.
- Use descriptive branch names, e.g.,
add-new-feature
orfix-bug
.
Stage your changes to prepare them for a commit:
git add .
Optionally, check the status:
git status
Save your changes locally with a meaningful commit message:
git commit -m "Your commit message here"
For non-binary files, Git tracks changes for version control. For CAD files like STL or STEP, Git stores the files as blobs without versioning.
Push your branch to your fork on GitHub:
git push origin your-branch-name
Once your changes are ready:
- Go to pyrater's repository: TARS-AI.
- Click Pull requests in the top menu.
- Click the green New pull request button.
On the Comparing changes page:
- Base repository:
pyrater/TARS-AI
, base:main
. - Head repository:
yourGithubUsername/TARS-AI
, compare:your-branch-name
.
- Add a meaningful title for your PR.
- Write a clear description of your changes, explaining what they do and why they’re needed.
- Confirm the changed files are correct.
- Click Create pull request.
- Notify pyrater on Discord in the
#repo
channel.
- Wait for pyrater to review your PR.
- If changes are requested, update your branch locally, commit, and push again. GitHub will automatically update the PR.
- Once approved, your changes will be merged into the main repository. Congratulations!
If other contributors make changes to the main repository, keep your fork in sync:
- Fetch updates from the upstream repository:
git fetch upstream
- Merge updates into your branch:
git merge upstream/main
- Push updates to your fork:
git push origin your-branch-name