Setting Up Git and GitHub for Red Devil Hacks
⚠️ IMPORTANT: All projects must be submitted through GitHub to be eligible for judging
This guide will walk you through setting up Git and GitHub for the hackathon, regardless of your experience level.
What are Git and GitHub?
- Git is a version control system that tracks changes to your code
- GitHub is a web-based platform where you can store your Git repositories and collaborate with others
Step 1: Install Git
Windows
- Download the installer from git-scm.com
- Run the installer with default options
- Open Git Bash to verify installation:
git --version
macOS
- If you have Homebrew:
brew install git
- Otherwise, download from git-scm.com
- Open Terminal and verify:
git --version
Linux
- Use your package manager:
- Ubuntu/Debian:
sudo apt-get install git
- Fedora:
sudo dnf install git
- Ubuntu/Debian:
- Verify:
git --version
Step 2: Create a GitHub Account
- Go to github.com
- Click “Sign Up” and follow the instructions
- Verify your email address
Step 3: Configure Git
Open Terminal/Git Bash and run:
git config --global user.name "Ty Chermsirivatana"
git config --global user.email "chermsit@dickinson.edu"
Use the same email associated with your GitHub account.
Step 4: Generate SSH Key (Recommended)
-
Generate an SSH key:
ssh-keygen -t ed25519
-
Copy your public key:
- Windows:
cat ~/.ssh/id_ed25519.pub | clip
- macOS:
pbcopy < ~/.ssh/id_ed25519.pub
- Linux:
cat ~/.ssh/id_ed25519.pub
and copy manually
- Windows:
-
Add your SSH key to GitHub:
- Go to GitHub → Settings → SSH and GPG keys
- Click “New SSH key”
- Paste your key and save
Step 5: Join the Red Devil Hacks Organization (TBD)
- Visit github.com/RedDevilHacks2025
- Look for the invitation link or request access from organizers
- Accept the invitation to join
Step 6: Create Your Project Repository
- Go to github.com/RedDevilHacks2025
- Click “New Repository”
- Name your repository using your team name:
team-name-project
- Add a description and set visibility to Public
- Initialize with README, add a .gitignore appropriate for your project
- Click “Create repository”
Step 7: Clone Your Repository
git clone git@github.com:RedDevilHacks2025/your-repo-name.git
cd your-repo-name
Basic Git Commands
# Check status of your repository
git status
# Add files to staging
git add filename # Add specific file
git add . # Add all files
# Commit changes
git commit -m "Descriptive message"
# Push to GitHub
git push
# Pull latest changes
git pull
# Create and switch to a new branch
git checkout -b branch-name
# Switch between branches
git checkout branch-name
Best Practices for Hackathons
- Commit frequently with descriptive messages
- Pull before you push to avoid conflicts
- Use branches for new features
- Don’t commit sensitive information (use .gitignore)
- Include a detailed README.md with:
- Project description
- Team members
- Installation instructions
- How to use your project
- Screenshots/demos
Remember, proper version control will make your development process smoother and ensure your project can be properly evaluated at the end of the hackathon.