Tuesday, April 28, 2015

GIT Reset Branch shell script

#!/usr/bin/env bash
echo "enter name of branch to checkout and hard reset"
read branch
git fetch; 
git checkout $branch ;
git branch -vvv;
git reset --hard origin/$branch;

No comments: