반응형
01 Git LFS 설치 및 초기화
$git lfs install
02 LFS로 관리할 파일 지정
$ git lfs track * // 전체 파일 선택
$ git lfs track "*.txt" // txt확장자를 가진 파일 선택
$ git lfs track "example/file.txt" 특정 파일 선택
실행 예시
03 lfs로 관리중인 파일 목록 확인
git lfs ls-files
04 .gitattributes추가
파일에 대한 트래킹 내역 기록
git add .gitattributes
05 add하기
다시 add하여 Git LFS로 추적하도록 설정된 파일을 staging시킨다.
git add . // 스테이징 영역에 추가된 모든 파일 add
git add -u // 현재 추적중인 것만 add
06 커밋 후 push하기
git commit -m "update gitattributes for lfs"
git push
반응형
'유니티 공부 > GitHub' 카테고리의 다른 글
GitHub - 최근 커밋 수정하기 (amend 사용) (0) | 2024.04.04 |
---|---|
GitHub - The file will have its original line endings in your working directory (0) | 2024.03.18 |
GitHub - 브랜치(branch) 이용해서 fetch,pull,add, commit, push 해보기 +) branch관련 명령어들 (0) | 2024.03.15 |
GitHub - 로컬 저장소, 원격저장소(git remote명령어들) 추가, 폴더 만들기(mkdir), 경로 변경(cd) (0) | 2024.03.15 |
댓글