Pushing to GitHub

  1. Check status of ignored/uncommited (untracked) files

    git status
    
  2. Add/edit .gitignore file to include files/folders which should not be pushed to github repository:

    src/__pycache__/
    docs/build/
    virtual_environment.txt
    
    _images/github_gitignore.png
  3. Create a branch for committing files to

    git checkout -b <branch_name>
    
  4. Add files to github staging area

    git add -A
    
  5. Commit staged files to GitHub

    git commit -m"First commit"
    
  6. Push commited files to online github repository

    git push origin <branch_name>