Skip to content

Sync a file to a Git repository (such as GitHub Gist) periodically.

License

Notifications You must be signed in to change notification settings

pantryf/git-sync-file.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sync a file to a Git repository (such as GitHub Gist) periodically.


Say you are running a program on a remote computer that outputs a file, and you want to share that file with others. You could use a service like GitHub Gist to share the file, but you would have to manually update the file every time it changes. This program automates that process.

$ bash index.sh "<repo-url>" "<file>" "[path-in-repo=file]" "[delay=1m]"
# "<repo-url>": URL of the Git/Gist repository
# "<file>"    : Path to the file to sync
# "[path-in-repo]": Path to the file in the repository (default: same as "<file>")
# "[delay]"       : Delay between syncs (default: 1 minute)



ORG DOI

About

Sync a file to a Git repository (such as GitHub Gist) periodically.

Resources

License

Stars

Watchers

Forks

Languages