You are forced to use git switch and git restore instead of git checkout by git-switch-trainer
.
go get -u github.com/sonatard/git-switch-trainer/
Add alias to your .bash_profile
- .bash_profile
alias git=git-switch-trainer
$ source ~/.bash_profile
$ git checkout master
Error: Use git switch or git restore instead of git checkout.