Skip to content

Instantly share code, notes, and snippets.

@vito
Created September 19, 2019 19:05
Show Gist options
  • Save vito/fb89052fa2557918ef6a5355b98c4a5f to your computer and use it in GitHub Desktop.
Save vito/fb89052fa2557918ef6a5355b98c4a5f to your computer and use it in GitHub Desktop.
auto commit-and-push RFC proposal documents on save
BRANCH=$(shell git rev-parse --abbrev-ref HEAD)
all: .git/HEAD
.git/HEAD: */proposal.md
git add $?
git commit -m "wip"
git push origin HEAD:${BRANCH}-wip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment