$branch = $(git branch --show-current) git checkout dev git pull git branch -D $branch git branch $branch git checkout $branch