Create a new repo first / …or create a new repository on the command line

• echo "# Sample_push" >> README.md

• git init

• git add README.md

• git add -A

• git commit -m "first commit"

• git branch -M main

• git remote add origin https://github.com/AjayNalluri/Sample_push.git

• git push -u origin main


…or push an existing repository from the command line

• git remote add origin https://github.com/AjayNalluri/Sample_push.git

• git branch -M main

Push Specific file/folder

• Select a file/folder and path to the file/folder in gitbash

• git init

• git status

• git add -A

• git commit -m "first commit"

• git remote add origin https://github.com/AjayNalluri/Sample_push.git

• git push origin master