This repository is designed to help you learn and practice Git fundamentals while working with Arduino projects. As a student, you'll clone this repository, create your own, and document your projects according to the specifications.
- Git installed on your computer
- A GitHub account
- Arduino IDE installed (https://www.arduino.cc/en/software)
- Basic understanding of Arduino programming
git clone https://github.com/jtrudeau/arduinogitresource2025.git
cd arduinogitresource2025- Go to GitHub and create a new repository
- Initialize your project:
# Navigate to your project folder
mkdir my-arduino-project
cd my-arduino-project
# Initialize git
git init
# Add your files
# Create some sample Arduino files for your project
# Stage your changes
git add .
# Commit your changes
git commit -m "Initial commit"
# Link to your GitHub repository
git remote add origin <your-repository-url>
# Push to GitHub
git push -u origin maingit statusgit add <filename> # Add specific file
git add . # Add all filesgit commit -m "Your commit message"git loggit branch <branch-name> # Create branch
git checkout <branch-name> # Switch to branch
git checkout -b <branch-name> # Create and switch in one commandgit checkout main # Switch to main branch
git merge <branch-name> # Merge the branch into mainWhen documenting your Arduino projects, please follow these guidelines:
-
Create a clear README.md file with:
- Project description
- Components list
- Wiring instructions
- Code explanation
- Usage instructions
-
Include comments in your Arduino code to explain:
- What each part does
- Pin connections
- Any special functions
-
Use descriptive commit messages that explain what changed and why
Check out the sample Arduino Data Logger project in the templates/sample_project directory. This example demonstrates:
- Proper documentation structure
- Arduino code organization
- Change tracking with Git
- Data analysis approach
The templates directory contains helpful examples:
- Sample project structure
- README template
- Markdown syntax guide