WSL Git에서 모든 파일이 modified로 표시됨 문제: WSL 사용중 Git에서 모든 파일에 modified 표시됨 원인: 파일 모드나 개행 문자 문제 해결: git config --global core.filemode false 또는 git config --global core.autocrlf true Code/Git 2021.10.12
drop된 stash 복구 문제: git stash drop으로 사라진 stash를 다시 사용해야 할 일이 생겼음 해결: 다음 명령으로 복구: git stash apply (stash 해시) drop을 방금 했다면 drop된 해시를 얻을 수 있음 예시) Dropped refs/stash@{0} (d2be07fdcba044d1e3d0eb746209900a784d41ce) 해시를 모른다면 다음 명령으로 얻어낼 수 있음: git fsck --no-reflog |awk '/dangling commit/ {print $3}' gitk를 이용해 각 해시의 파일 내용을 확인하며 탐색 가능 gitk --all $( git fsck --no-reflog |awk '/dangling commit/ {print $3}' ) https://stacko.. Code/Git 2021.09.24
VS2019 Git SSH 연결 시 passphrase 기억 문제: VS2019 Git에서 SSH로 연결한 리포지토리의 작업을 할 때 매 작업마다 passphrase를 요구함 원인: VS2019에서 ssh-agent와 연결된 시스템의 ssh.exe를 사용하지 않고 자체적으로 내장되어있는 ssh.exe를 사용해 저장된 passphrase를 불러오지 못함 해결: 64비트 윈도우 기준 해결법이다. developercommunity.visualstudio.com/t/visual-studio-fails-to-find-native-openssh/338518#T-N954852 Visual Studio Fails to find Native OpenSSH I have GIT configured to use the native OpenSSH that comes with the la.. Code/Git 2021.05.16
git help가 html 에디터에서 열릴 때 문제: git (명령어) --help 실행 시 .html 확장자의 연결 프로그램으로 지정된 프로그램 (나의 경우 vscode)에서 열림 해결: (Microsoft Edge 사용 환경) git config --global web.browser chromium git config --global browser.chromium.path "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" Git - git-web--browse Documentation (git-scm.com) Code/Git 2021.04.23
GitHub linguist-vendored 문제 문제: .gitattributes의 linguist-vendored가 서브디렉토리들에 있는 파일들을 인식하지 못함 해결: globstar(**) 사용 ex) Etcs/Html/*.html, Etcs/External/*.html, Etcs/External/Something/*.html 에 적용 -> .gitattributes에 추가: Etcs/**/*.html linguist-vendored Code/Git 2021.04.22
git config의 에디터로 VSCode 지정 시 오류 문제: git에서 에디터로 code를 쓸 때 오류 해결: .gitconfig의 [core]>editor를 code -w로 바꾸어 준다 code -w : vscode를 열고 닫힐때까지 대기하는 옵션 Code/Git 2021.04.11
GitHub 리포지토리의 언어 통계 변경 C# 프로젝트에서 언어 통계가 아래처럼 나오는 것을 발견했다. github - Using gitattributes for linguist examples - Stack Overflow Using gitattributes for linguist examples Are there any concrete examples, in order to detect wrong languages in GitHub via Linguist attributes? Source: https://github.com/github/linguist linguist-documentation linguist-language lingu... stackoverflow.com .gitattributes 파일을 수정함으로써 통계에 원하지 않는 파일.. Code/Git 2021.02.25