본문 바로가기

IT 모음/깃(Git) 관련 오류, 팁 모음

(3)
깃 오류 3 : Git error: src refspec master does not match any. git push origin master 실행 시 위와 같은 오류가 나온다. 내 경우 해결법은 아래와 같았다. Scenario 4 – Committing and pushing Empty Directory in Git A certain version of Git like GitHub, bitbucket does not track the empty directories, so if a directory is empty and you are trying to commit and push, it will lead to an error: src refspec master does not match any. Solution – Add a file to your directory before pushing it to..
깃 오류 2 : LF will be replaced by CRLF in 가 출력되는 경우 문제 : VS에서 git init 이후 git add . 를 입력했을 시 LF will be replaced by CRLF in가 출력됨. 問題 : VSで git init を実行した後 git add . を実行すると LF will be replaced by CRLF inが出まくる。 문제원인 : 깃 배쉬가 LF행간코드를 CRLF로 자동변환할 때 나타나는 경고이다. 問題原因:これはGitがLF改行コードをCRLFに自動変換した事によるワーニング 해결법 : Git 콘피그에서 자동변환을 오프로 해주면 된다. 깃 배쉬 실행 후 아래 코드 입력. 解決法:gitのコンフィグにある改行コード自動変換プロパティをオフにします。 1 $ git config --global core.autoCRLF false https://normalblo..
깃 오류 1 : warning: could not open directory 'Application Data/': Permission denied 해결책 문제 : VS 터미널 창에서 git init 을 입력 후, git add . 을 입력하자 아래와 같은 오류가 뜸. 問題:VSのターミナルからgit init コマンドを実行後、git add .を実行すると以下のようなエラーが発生。 문제원인 : 처음부터 git 디렉토리가 잘못되었던 것. 問題原因:ホームディレクトリであやまってgit initした為。 해결법 : C:/Users/(당신의 사용자 이름)/.git를 삭제할 것. 그 다음 아래의 코드를 실행할 것. 解決法:C:/Users/(あなたのユーザー名)/.gitを削除すること。その後、以下のコードを実行。 cd C:/Users/(당신의 사용자 이름) git init newRepo cd newRepo 해결에 도움이 된 링크 : https://stackoverflow.com/que..