Thank you for your interest in contributing to C Project Template! This guide will help you get started.
- A GitHub account
- Git installed on your local machine
- A C compiler (e.g.
gcc) - A text editor or IDE
- Sign up for GitHub if you don't have an account.
- Fork the repository by clicking Fork at the top right of the repo page.
- Clone your fork:
git clone https://github.com/<your-username>/c-project-template.git - Open the project in your editor or IDE.
- Compile the project:
gcc projectTemplate.c -o projectTemplate.exeIf you encounter errors, please open an issue.
Work items are tracked as GitHub issues.
Issues are grouped into milestones representing upcoming releases.
- Make sure an issue exists for the work. If not, create one.
- Switch to
develop:git checkout develop - Create a branch:
git checkout -b <branch-name> - Make your changes.
- Test your changes.
- Commit:
git commit -m "Description of changes" - Push:
git push origin <branch-name> - Open a pull request against
develop, link the related issue with#<number>. - Address review feedback.
Compile and run the project to verify your changes:
Linux / macOS:
gcc projectTemplate.c -o projectTemplate.exe
./projectTemplate.exeWindows (with MinGW or similar):
gcc projectTemplate.c -o projectTemplate.exe
projectTemplate.exeYou can also use the provided compile-and-run script:
./cr.shOpen a GitHub Discussion or issue in this repository.