How to upload python files from google collab or jupyter notebook on github?

Hi, like we upload files from eclipse on github, can we do that with google collab and jupyter

Yes, for e.g. there is option to copy your notebook to GitHub. If its not already setup, it will prompt you to do the same.
Screenshot 2020-07-26 at 11.09.19 PM

You can also check this blog. It covers simple as well as some more advanced setup options.