Sunday 20 October 2019

Git 對 Binary File (Excel, Photoshop Designs, Executable Files) 進行追蹤版控

Preface

Git 較常用於管理文字檔案,對於Binary File的版控管理,可以用lfs這個指令來進行管理

Tutorial

可以用下列的Git 指令對Repo進行初始化
$ git lfs install
接著可以把Binary File檔案加入進行追蹤
$ git lfs track "*.xlsx"
若是要修改追蹤的Binary File,可以直接對.gitattributes進行修改

0 comments:

Post a Comment