Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run git lfs automatically after repo sync

Tags:

repo

git-lfs

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?

like image 642
Jophen Avatar asked Nov 16 '25 07:11

Jophen


1 Answers

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.

like image 130
Johan Alexis Duque Cadena Avatar answered Nov 17 '25 22:11

Johan Alexis Duque Cadena