Skip to content

Instantly share code, notes, and snippets.

View androidzhibinw's full-sized avatar
😅
tired

zhibinw androidzhibinw

😅
tired
View GitHub Profile
@androidzhibinw
androidzhibinw / update_checkout.sh
Last active December 25, 2015 06:38
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
@androidzhibinw
androidzhibinw / get_count.txt
Created December 22, 2015 08:47
use sed replce ; to \n and get the count with wc.
sed 's/;/\n/g' name-list.txt |wc