Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/10sr/git-exec

Execute Command in Your Git Repository
https://github.com/10sr/git-exec

Last synced: about 2 months ago
JSON representation

Execute Command in Your Git Repository

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/10sr/git-exec.svg?branch=master)](https://travis-ci.org/10sr/git-exec)
[![Go Report Card](https://goreportcard.com/badge/github.com/10sr/git-exec)](https://goreportcard.com/report/github.com/10sr/git-exec)

git-exec
========

Execute command in your git repository!

Install
-------

go get -u github.com/10sr/git-exec

Usage
-----

Without any argument, just run given comand at the root directory of your git
repository (fail if you are not inside of any git repository):

git exec [...]

With `-r ` option, try to checkout that revision and run command.

git exec --revision|-r [ ...]

In this case, files are checked out into a working directory first (defaults to
`$HOME/.git-exec/$name.$id`, where `$name` is the base
name of the directory and `$id` is calculated from the directory full path)
and then the command will be invoked.

Also, you can run command with staged files:

git exec --with-staged|-s [ ...]

License
-------

This software is unlicensed. See [LICENSE](LICENSE) for detail.