Open PowerShell in your project folder and run:
git statusAdd all your project files to Git:
git add .Commit your files with a message:
git commit -m "Initial commit: Portfolio website"- Go to GitHub: https://github.com/new
- Repository name:
portfolio-website(or any name you prefer) - Description: "Professional portfolio website for Data Analyst"
- Visibility: Choose Public (or Private if you prefer)
- DO NOT check "Initialize with README" (we already have files)
- Click "Create repository"
After creating the repository, GitHub will show you commands. Use these:
git branch -M main
git remote add origin https://github.com/oness12/portfolio-website.git
git push -u origin mainNote: Replace portfolio-website with your actual repository name if different.
- If prompted, enter your GitHub username
- For password, you'll need a Personal Access Token (see below)
If Git asks for a password, you need a Personal Access Token:
- Go to: https://github.com/settings/tokens
- Click "Generate new token" → "Generate new token (classic)"
- Name it: "Portfolio Deployment"
- Select scopes: Check "repo" (full control)
- Click "Generate token"
- Copy the token (you won't see it again!)
- Use this token as your password when Git prompts you
Visit: https://vercel.com
- Click "Sign Up"
- Choose "Continue with GitHub"
- Authorize Vercel to access your GitHub
- Click "Add New..." → "Project"
- Find your
portfolio-websiterepository - Click "Import"
Vercel will auto-detect Next.js settings:
- Framework Preset: Next.js (auto-detected)
- Root Directory:
./(leave as is) - Build Command:
npm run build(auto-detected) - Output Directory:
.next(auto-detected)
Click "Deploy"
- Vercel will build your project (takes 1-3 minutes)
- You'll see build logs in real-time
- When done, you'll see: "Congratulations! Your project has been deployed."
- Your site will be live at:
https://your-project-name.vercel.app - You can customize the domain name in Vercel settings
Whenever you make changes:
- Make your changes in your code
- Commit changes:
git add . git commit -m "Description of changes" git push
- Vercel auto-deploys: Your site will automatically update!
# Check status
git status
# Add files
git add .
# Commit
git commit -m "Your message here"
# Push to GitHub
git push
# Pull latest changes (if working on multiple computers)
git pullSolution: Make sure you've added the remote repository:
git remote -vIf empty, add it:
git remote add origin https://github.com/oness12/your-repo-name.gitSolution: Use Personal Access Token instead of password
Solution:
- Check build logs in Vercel dashboard
- Make sure all dependencies are in
package.json - Ensure Node.js version is compatible (18+)
- GitHub Docs: https://docs.github.com
- Vercel Docs: https://vercel.com/docs
- Next.js Docs: https://nextjs.org/docs
Good luck! 🎉