tool:git
차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판이전 판다음 판 | 이전 판 | ||
| tool:git [2020/01/17 12:15] – kieuns | tool:git [2024/04/23 22:43] (현재) – 바깥 편집 127.0.0.1 | ||
|---|---|---|---|
| 줄 1: | 줄 1: | ||
| + | {{htmlmetatags> | ||
| + | metatag-keywords=(깃, | ||
| + | metatag-description=(깃 팁 사용법 kieuns) | ||
| + | metatag-media-og: | ||
| + | metatag-og: | ||
| + | metatag-og: | ||
| + | }} | ||
| + | ====== 리파지토리의 설정 보기 ====== | ||
| + | |||
| + | git config -l | ||
| + | |||
| + | 현재 설정 상태를 모두 볼 수 있다. | ||
| + | |||
| + | ====== 대소문자 구분 CaseSensitive ====== | ||
| + | |||
| + | 깃의 기본 설정을 대소문자를 구분하지 않는 것. | ||
| + | |||
| + | 하지만 설정을 바꿔서 대소문자를 구분하게 할 수 있음. | ||
| + | |||
| + | git config core.ignorecase false | ||
| + | |||
| + | 보통은 신경 쓸일이 없는데, 유니티에서 파일 이름의 대소문자를 바꿨다가 낭패 봤던 경우가 있어서.. | ||
| + | 바꿨던 본인은 문제 없겠지만 내려 받아서 쓰는 쪽에서는 문제가 생겨서 골치 아팠던 적이 있다. | ||
| + | |||
| + | ====== Git for WINDOWs 깃 포 윈도우즈 ====== | ||
| + | |||
| + | ===== 자동 업데이트 수동 실행 ===== | ||
| + | |||
| + | **Git for windows** 프로그램에 자동 업데이트 기능이 방화벽에 막힐때, 수동으로 실행할 커맨드. | ||
| + | |||
| + | * Git-Bash 실행 | ||
| + | |||
| + | 커맨드에 아래 커맨드 입력 | ||
| + | |||
| + | < | ||
| + | > git update-git-for-windows --gui | ||
| + | </ | ||
| + | |||
| + | 자동 업데이트 스케쥴러는 | ||
| + | |||
| + | * 윈도우키 눌러서 검색창에서 **작업스케쥴러** 검색 | ||
| + | * **작업스케쥴러** 실행 | ||
| + | * **작업 스케쥴러 라이브러리** 의 여러 항목 중 **Git for Windows Updater** 에 실행되는 커맨드가 적혀 있다. | ||
| + | |||
| + | ====== git-lfs 쓰다가 복원하려면 ====== | ||
| + | |||
| + | * 질문 사이트 : https:// | ||
| + | |||
| + | < | ||
| + | |||
| + | I have a project where I stored video files with Git LFS. Now I ran into some complications with my build server that doesn' | ||
| + | |||
| + | I imagine I could remove the files, push the changes and then manually re-add them, but is this really the recommended way of doing things? | ||
| + | |||
| + | < | ||
| + | |||
| + | I had problems doing steps in Windows. To remove all git lfs tracked files and restore original file I did the following in git bash: | ||
| + | |||
| + | Removed .gitattributes | ||
| + | |||
| + | <code bash> | ||
| + | git lfs ls-files | cut -d ' ' -f 3 > lfs-files.txt | ||
| + | </ | ||
| + | |||
| + | Execute following snippet: | ||
| + | |||
| + | Snippet: | ||
| + | |||
| + | <code bash> | ||
| + | while read file; do | ||
| + | git lfs untrack " | ||
| + | git rm --cached " | ||
| + | git add --force " | ||
| + | done < | ||
| + | </ | ||