Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# upload or update a file to a folder in a remote GitHub repository
# v1.0.0
# source:
# https://gist.github.com/alifeee/d711370698f18851f1927f284fb8eaa8
# for more info see
# https://blog.alifeee.co.uk/notes/uploading-files-to-a-git-hub-repository-with-a-bash-script/
# provide environment variables when executing script or with .env file
# example:
# export org="alifeee"