Skip to content
This repository has been archived by the owner on Feb 27, 2022. It is now read-only.

Latest commit

 

History

History
55 lines (36 loc) · 1.27 KB

syncme.asciidoc

File metadata and controls

55 lines (36 loc) · 1.27 KB

syncme.js(1)

NAME

syncme.js - utility to do a git-pull on a list of cloned repositories

SYNOPSIS

syncme.js is an example script that reads $HOME/.syncme to get a list of git repos and do a git pull to update the local contents. If $HOME/.syncme doesn’t exist it will try to create an empty one. You edit syncme’s configuration with syncme. There are five basic options.

--add=NICKNAME:PATH

Add a nickname and git repository clone’s path to syncme

--remove=NICKNAME

Remove a nickname and it’s path from syncme

--view

View a list of nicknames and paths syncme knows about

--run

Run git pull in all the locations tha syncme knows about

--help

Show a summary of this page

If no options are specified syncme.js assumes the --run option. At this time syncme.js only does a git pull. You still need to use git for doing real interaction with repository.

EXAMPLES

adding $HOME/git-clones/node with nickname node
syncme.js --add=node:$HOME/git-clones/node
viewing nickname and paths tracked by syncme
syncme.js --view
running a sync
syncme.js --run
removing nickname node
syncme.js --remove=node