We started to use git lfs recently, but many team members fogot to run git lfs after repo sync. Is there any way could run git lfs after repo sync automatically?
As far as I know there is no solution for this without modify the repo tool, but you always can create an alias (in GNU/Linux) in the file ~/.bash_aliases or ~/.bashrc:
alias repo-lfs="repo sync && repo forall -c git lfs pull"
Then source the file source ~/.bash_aliases and instead of using repo sync, use the repo-lfs command.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With