#一時的に他の作業を行う場合
function git_keep_uncommitted_work_and_revert_to_known_state(){
[ "$1" == "" ] && echo "give a hash that points to desired restore state" && return;
git stash
git reset --hard "$1"
git stash pop
}
#即知の安全圏へ退避
function git_revert_to_known_state(){
[ "$1" == "" ] && echo "give a hash that points to desired restore state" && return;
git reset --hard "$1"
}