Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有關資料儲存方式 #2

Open
typebrook opened this issue Apr 26, 2022 · 1 comment
Open

有關資料儲存方式 #2

typebrook opened this issue Apr 26, 2022 · 1 comment

Comments

@typebrook
Copy link

typebrook commented Apr 26, 2022

既然以 Github 來儲存資料,是否考慮把 qlr 檔案使用到的資料一併納入版本控制?
針對較大的地理資訊檔案,可以參照 lfs 的方式僅紀錄 hash 值並上傳至 Github

@typebrook
Copy link
Author

typebrook commented Apr 26, 2022

舉例來說,要把 shp 檔案納入版控系統:

# Set up Git LFS for your user account and repo, only need to do this once
git lfs install

# Track file with LFS way
git lfs track 00_基本圖資/7442-直轄市、縣市界線(TWD97經緯度)/COUNTY_MOI.shp
git add .gitattributes

# Works like common files
git add 00_基本圖資/7442-直轄市、縣市界線(TWD97經緯度)/COUNTY_MOI.shp
git commit -m "Add shp file" 
git push origin main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant