Skip to content

Automate your `git push` at a regular interval while you write your code. Why push yourself when you can have script do it for you? :: by @IVainqueur

License

Notifications You must be signed in to change notification settings

opentoolbox-gh/auto-push

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto-Push

Just a simple Python script to push code automatically after a specified period of time. Consider it like auto-save but for git😁

You're welcome😎

Installation

To install auto-push, refer to the included INSTALL.md

Usage

auto-push [--dir=DIR] [--branch=BRANCH] [--commit=MESSAGE] [--interval=MINUTES]

--dir is the path to the directory you want to push. Defaults to CURRENT DIRECTORY

--branch is the branch to which you want to push. Default is the result of the 'git branch' command.

--commit is a template for the commit message. Default is 'auto-commit-[uuid]' For example: if --commit='automatic' then all the commit message will be 'automatic-[uuid]'. Note: You can also put the uuid anywhere else in the string like so: --commit='commit-#num#-automatic' The --commit above will be turned into 'custom-[uuid]-automatic'.

--interval is the interval between pushes in minutes. Default is 5 minutes

Note:

  • You can press q anytime to quit
  • p is for pausing or resuming
  • cb [newbranch] is for changing to a new branch while it's running

About

Automate your `git push` at a regular interval while you write your code. Why push yourself when you can have script do it for you? :: by @IVainqueur

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 94.1%
  • Shell 5.9%