Skip to content

Instantly share code, notes, and snippets.

@androidzhibinw
Last active December 25, 2015 06:38
Show Gist options
  • Save androidzhibinw/4bb5ec40194c45e8c077 to your computer and use it in GitHub Desktop.
Save androidzhibinw/4bb5ec40194c45e8c077 to your computer and use it in GitHub Desktop.
update and checkout new branch each time.
#!/bin/bash
REMOTE=`git remote`
WORK_BRANCH="remotes/$REMOTE/android_ui.lnx.1.0-rel.1.1"
git remote update
echo "update done"
btime=`date +'%Y-%m-%d-%H-%M'`
#echo $WORK_BRANCH $btime
git checkout $WORK_BRANCH -b rel.1.1_$btime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment