How to push local files/folder on remote github repository using gitbash

 # Go to your project folder

cd /path/to/project

# Initialize Git

git init

# Add remote GitHub repository

git remote add origin https://github.com/username/repository.git

# Add all files to staging

git add .

# Commit the files

git commit -m "Initial commit"

# Set branch name to main

git branch -M main

# Push to GitHub

git push -u origin main


Comments

Popular posts from this blog

kubectl minikube deploying ubuntu using docker