Github - Notes

Below is the notes for pushing local files, directories to github account.

1). create empty folder(without readme.md files) in github and execute the below command.

git remote add origin https://github.com/surendra-arivappagari/Flask_API.git

2). bydefault the local branch name will be master and renaming to main just to sync github branch

git branch -m main

3,4). add, commit

git add -A
git commit -m "commit message"

5). add the remote upstream to local git

git push --set-upstream origin main