Skip to content

Latest commit

 

History

History
77 lines (58 loc) · 2.04 KB

File metadata and controls

77 lines (58 loc) · 2.04 KB

Quick Start Guide - Push to GitHub

Prerequisites

  • GitHub account (create one at https://github.com)
  • Git installed on your system
  • SSH key or Personal Access Token configured

Steps to Push to GitHub

1. Create a New Repository on GitHub

  1. Go to https://github.com/new
  2. Enter repository name: Snake_Game_with_Python
  3. Add description: "A feature-rich Snake game with Pygame"
  4. Choose visibility (Public or Private)
  5. DO NOT initialize with README (we already have one)
  6. Click "Create repository"

2. Add Remote and Push

Copy one of these commands based on your GitHub setup:

Using HTTPS (easier for beginners):

cd c:\Users\sumon\Snake_Game_with_Python
git remote add origin https://github.com/YOUR_USERNAME/Snake_Game_with_Python.git
git branch -M main
git push -u origin main

Using SSH (if configured):

cd c:\Users\sumon\Snake_Game_with_Python
git remote add origin git@github.com:YOUR_USERNAME/Snake_Game_with_Python.git
git branch -M main
git push -u origin main

3. Replace YOUR_USERNAME

Replace YOUR_USERNAME with your actual GitHub username.

4. Authenticate

Verification

After pushing, verify your repository:

  1. Visit https://github.com/YOUR_USERNAME/Snake_Game_with_Python
  2. Confirm all files are present
  3. Check that the README displays properly

Future Updates

To push future changes:

git add -A
git commit -m "Your commit message"
git push origin main

Additional Resources


Your repository is now ready to be pushed to GitHub! 🚀