Git Command to Upload Folder to GitHub

Paste Content

# Git Upload Folder to GitHub Steps

1. Enter the project directory
cd folder

2. Initialize Git
git init

3. Add GitHub remote
git remote add origin REPO_URL

4. Add all files
git add .

5. Commit changes
git commit -m "Initial upload from DB"

6. Change branch to main (if not already)
git branch -M main

7. Push to GitHub
git push -u origin main

Comments

No comments yet.