Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/10sr/git-exec
- Owner: 10sr
- License: unlicense
- Created: 2016-04-07T03:34:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-31T05:18:40.000Z (about 6 years ago)
- Last Synced: 2024-06-20T12:44:08.679Z (7 months ago)
- Language: Go
- Homepage:
- Size: 28.3 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.