brew install git-lfs
git lfs install #顯示Git LFS initialized是安裝成功
cd 要下載到的檔案位置(要用Finder路徑的方式) #example:cd desktop(下載到桌面)
git clone (HTTP連結或SSH)
cd 資料夾路徑
git lfs track "*.要連結lfs的檔案副檔名" #這裡會連結所有新增檔案符合這個副檔名的檔案 #顯示Tracking是成功連接
git add .gitattributes
git status
git add .
git commit -m "備註的上傳訊息(引號要加)"
git push
如果遇到輸入正確密碼還是登不進去,再開一個Terminal視窗
eval "$(ssh-agent -s)" ssh-add -K 剛剛顯示輸入密碼那條的檔案路徑 #example: ssh-add -K /Users/chen/.ssh/id_ed25519 cd 到剛剛的資料夾位置 git push #成功的話就會看到他有進度條在上傳了
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up