Commandline: Force Git branch sync for .bash_profile

--

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"

--

--

Esa(Lackluster)Ruoho
Esa(Lackluster)Ruoho

Written by Esa(Lackluster)Ruoho

Electronic music composer, free-energy archivist/librarian. Some form of thinker.