reflogを整形してpecoで一覧して選択してcheckout
selected=`git reflog | grep checkout: | awk '!a[$8]++ {print $8}' | grep -v master | head | peco`
if ! [ -f $selected ]; then
git checkout $selected
fi
Go to list of users who liked
More than 5 years have passed since last update.
reflogを整形してpecoで一覧して選択してcheckout
selected=`git reflog | grep checkout: | awk '!a[$8]++ {print $8}' | grep -v master | head | peco`
if ! [ -f $selected ]; then
git checkout $selected
fi
Register as a new user and use Qiita more conveniently
Go to list of users who liked