Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 553 Bytes

README.md

File metadata and controls

35 lines (22 loc) · 553 Bytes

git-exec

install

go install github.com/akm/git-exec@latest

You might have to run asdf reshim .

Usage

git exec (your command with argument)

git-exec executes given command and git add . and git commit automatically.

Option

You can change message prefix by environment variable GIT_EXEC_COMMIT_PREFIX .

Tips

  1. Use shell for redirection
git exec /bin/bash -c 'echo "foo" >> README.md'
  1. Pass environment variables before the executable command
git exec FOO=fooooo command1 args1 args2