0.0.6 • Published 5 years ago

branchsync v0.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Build Status codecov npm

branchsync

A lightweight Node.js script to pull from one Git branch and to push to another. Useful for syncing master branches of projects hosted on, for example, both GitHub and Bitbucket. Also useful as a cron job.

Installation

npm

To install from npm, run

npm install --global branchsync

Source

Clone this repository, then install dependencies with

npm install

and run the script with

./branchsync.js

Usage

WARNING: never run this script in clones of repositories you are actively working in! You may lose uncommited changes due to this script!

The first thing you need to do is to fill out the config file. There's an example config file at the base of the repository called config.yaml.example. Should be fairly self explanatory.

When running the script with no arguments, i.e.,

branchsync

a config file is looked for in $CWD/config.yaml where $CWD is your current working directory. To explicitly pass in a config file path, use the --config (or -c) flag:

branchsync --config /path/to/config.yaml

cron scheduling

There's a good chance you'll want to schedule this task, probably with cron. A quick Google search (for example, "cron schedule linux") should point you in the right direction with this.

0.0.6

5 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago