Skip to content
/ stow Public

Use stow to upload individual files to an existing repo quickly

Notifications You must be signed in to change notification settings

naiduv/stow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

stow

Use stow to upload individual files to an existing repo quickly

Usage: ./stow.sh local_file_name ssh_git_repo_url branch_name

Stow creates a clone of the repo in the ~/.stow/tmp directory. It then copies the local file you wish to push to that directory, commits and pushes it to the branch specified.

Known Issues

  • Fails silently on every step, requires user to look at the logs
  • Does not pull repo, so if remote changes occur, user needs to manually delete the repo in tmp - work around might be to just 'git reset --hard origin master' after a failure or when the call to stow is made.
  • Does not correctly account for new branches

Future work

  • perform git pull before adding the new file
  • pull branches, create branch if it does not exist
  • show friendly errors eg: ssh-key, could not find, already exists
  • more useful commit comments
  • stow uses global git config, maybe allow user to change the config inside repos in .stow
  • clean up tmp logs and repos after a few days

About

Use stow to upload individual files to an existing repo quickly

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages