This contains a mix of useful github commands that I am collecting from various source
Useful github commands
Make a directory a Git repository
$ git init .
$ git status
$ git add file.txt
$ git commit -m "Adding file"
$ git log
Go to GitHub and create or login to your account. At the top right of any Github page, there is a ‘+’ icon. Click that, then select ‘New Repository’. Name your repository python_tutorial. It is best practice for your local project and GitHub repository to share a name. And click “Create Repository” Copy the link to your GitHub repository. Copy the link in the input right beneath the title, it should look something like this: https://github.com/<user_name>/.git
Note: Your remote repository URL is the link you copied in previous step
$ git remote add origin
$ git remote -v
$ git push origin main