summaryrefslogtreecommitdiff
path: root/git-publish
blob: 29cb246aa9d2835138397346aab9e1c7feb906f7 (plain)
1
2
3
4
5
6
7
#!/usr/bin/env bash
# send a specific commit on the current branch to the remote
branch=$(git rev-parse --abbrev-ref HEAD)
remote=$1
commit=$2
git push $remote $commit:$branch