There is any way to auto commit any change in files to github repository i mean from render commit to github the changes each time
Git is not an object storage system, it is a version control system.
Use a disk ( Persistent Disks – Render Docs ), or an AWS S3-like service, or Dropbox/Google Drive/OneDrive/etc., or anything else that is a flat-file/object storage system.