how to upload folder in github manually code example

Example 1: uploading a folder to github

git init
     git add <folder1> <folder2> <etc.>
     git commit -m "Your message about the commit"
     git remote add origin https://github.com/yourUsername/yourRepository.git
     git push -u origin master
     git push origin master

Example 2: github file and folder upload step by step

user@Lenovo-PC MINGW64 /h/python/development/text_to_speech
$ git init
Initialized empty Git repository in H:/python/development/text_to_speech/.git/

user@Lenovo-PC MINGW64 /h/python/development/text_to_speech (master)
$ git add .

user@Lenovo-PC MINGW64 /h/python/development/text_to_speech (master)
$ ls
softwaredev/  tktk.py

user@Lenovo-PC MINGW64 /h/python/development/text_to_speech (master)
$ git add softwaredev/*

user@Lenovo-PC MINGW64 /h/python/development/text_to_speech (master)
$ git commit -m "1st commit"
[master (root-commit) 47e8161] 1st commit
 21 files changed, 28780 insertions(+)
 create mode 100644 softwaredev/__pycache__/text_speech_software.cpython-39.pyc
 create mode 100644 softwaredev/build/myapps/Analysis-00.toc
 create mode 100644 softwaredev/build/myapps/EXE-00.toc
 create mode 100644 softwaredev/build/myapps/PKG-00.pkg
 create mode 100644 softwaredev/build/myapps/PKG-00.toc
 create mode 100644 softwaredev/build/myapps/PYZ-00.pyz
 create mode 100644 softwaredev/build/myapps/PYZ-00.toc
 create mode 100644 softwaredev/build/myapps/Tree-00.toc
 create mode 100644 softwaredev/build/myapps/Tree-01.toc
 create mode 100644 softwaredev/build/myapps/base_library.zip
 create mode 100644 softwaredev/build/myapps/myapps.exe.manifest
 create mode 100644 softwaredev/build/myapps/warn-myapps.txt
 create mode 100644 softwaredev/build/myapps/xref-myapps.html
 create mode 100644 softwaredev/dist/myapps.exe
 create mode 100644 softwaredev/dist/speech_is.mp3
 create mode 100644 softwaredev/myapps.spec
 create mode 100644 softwaredev/pdd.txt
 create mode 100644 softwaredev/speech_is.mp3
 create mode 100644 softwaredev/text_speech_software.py
 create mode 100644 softwaredev/ttstool37.ico
 create mode 100644 tktk.py

user@Lenovo-PC MINGW64 /h/python/development/text_to_speech (master)
$ git branch -M main

user@Lenovo-PC MINGW64 /h/python/development/text_to_speech (main)
$ git remote add origin [email protected]:user-name/Tkinterproj.git

user@Lenovo-PC MINGW64 /h/python/development/text_to_speech (main)
$ git push -u origin main
Enumerating objects: 28, done.
Counting objects: 100% (28/28), done.
Delta compression using up to 4 threads
Compressing objects: 100% (25/25), done.
Writing objects: 100% (28/28), 12.74 MiB | 1.82 MiB/s, done.
Total 28 (delta 5), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (5/5), done.
To github.com:user-name/Tkinterproj.git
 * [new branch]      main -> main
Branch 'main' set up to track remote branch 'main' from 'origin'.

user@Lenovo-PC MINGW64 /h/python/development/text_to_speech (main)