Skip to content

Xavier2p/gitsync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gsync

ci-status rust

license release docs-status


A tool to earn time at each git actions.

At each call, the tool performs:

$ git add -A 
# or --updated if you use the `-u` option

$ git commit -m "<MESSAGE>"
# we can add the option `-s` to use commit signature

$ git tag -a <TAG_NAME> -m "<MESSAGE>"
# if you use `-t <NAME>`

$ git push
# only if you don't use `-l`, follows tags if selected

You can add -v to enable verbose at each step.

Usage

$ gsync --help
A simple tool to use `git` with ease.
Written in Rust.

Usage: gsync [OPTIONS] [MESSAGE]

Arguments:
  [MESSAGE]  Message to assign to the commit [default: "[gsync]: Work in Progress"]

Options:
  -t, --tag <TAG>  Tag to assign at the commit
  -l, --local      If used, the commit won't be pushed, only committed
  -v, --verbose    Enable verbose mode
  -u, --updated    Add only the updated files
  -s, --sign       Sign the commit
  -h, --help       Print help
  -V, --version    Print version

Examples

gsync "My commit message"
gsync -uvlt v1.0.0 "My commit message"

Installation

git clone https://github.com/Xavier2p/gitsync.git && cd gitsync
cargo install --path .

License

This project is under the MIT License.

Author

gsync © Xavier2p