Created
October 10, 2014 12:11
-
-
Save nysalor/9c984314eb12e4b441b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
date=`date "+%Y%m%d-%H%M%S"` | |
branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p') | |
host=`hostname -s` | |
git checkout -b "wip-${date}" | |
git add . | |
git add -u | |
git commit -m "[WIP] temporary commit from ${branch} on ${host}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment