Commandline: Force Git branch sync for .bash_profile
Apr 30, 2023
I have been having issues forcing Git to reset hard — so I created this addition to .bash_profile to make it possible for me to go
$ force <git-branch-name>
function forcegit {
branch=$1
git reset — hard origin/${1}
}
alias force=”forcegit $1"