cd path/to/your/directory
git init
Add Files and Folders (it will add all the folders or files which are avaliable inside this working directory. It will create a hidden folder .git to see it use ls -a command)
git add .
git add file.txt
git status
git commit -m "Your commit message"
git remote add origin git@github.com:user_name/repository_name
git pull origin main --allow-unrelated-histories
git push origin master:main