본문 바로가기
잡다한 코딩이야기

git lfs 파일 다운로드 받기

by 김예비석사 2023. 1. 20.

github에서 파일 다운로드를 받았는데

그냥 txt file에 git lfs 주소만 적혀있길래 이게 뭔가... 했더니

github에는 대용량 파일을 못올려서 그런거라고 한다..

 

https://github.com/godotengine/tps-demo/issues/36

 

git lfs fetch - Not in a git repository · Issue #36 · godotengine/tps-demo

Hi. I just want to clone this project into a Windows10 machine, using the git in command-line and I get the following error message: λ git lfs fetch Not in a git repository. I have no clue haw to f...

github.com

처음에 아무것도 모르고 그냥

git clone 후에 바로 git lfs pull을 하면

git clone https://github.com/
git lfs pull or git lfs fetch --all
Not in a git repository.

이렇게 된다. .

 

directory를 바꾼 상태에서 해야 다운로드가 된다

 

git clone https://github.com/example/ex
cd ex
git lfs install
git lfs fetch
git checkout master

했더니 멀쩡히 잘 다운로드됨

코드에 대한 이해는 없으나 일단 해결은 됐으니..

그걸로 끝!!^^