developer tip

JetBrains IntelliJ IDEA에서 Github를 사용하려면 Git이 필요합니까?

optionbox 2020. 12. 30. 08:05
반응형

JetBrains IntelliJ IDEA에서 Github를 사용하려면 Git이 필요합니까?


JetBrains IntelliJ IDEA에는 GitGithub의 2 가지 플러그인이 있습니다 . IntelliJ IDEA를 통해 파일을 GitHub에 업로드하려면 로컬 Windows 컴퓨터에 http://git-scm.com 에서 Git을 설치해야 합니까?


나는 방금 같은 문제에 대해 생각해 냈습니다.

git (Windows)을 설치할 때 전체 PATH (환경 변수) 통합을 수행하지 않기로 선택한 경우 IntelliJ에 찾을 위치를 알려야합니다 git.cmd. 당신은 이것을 할 수 있습니다

Settings > Project Settings > Version Control > VCSs > Git

내 경우는 창에이 같은 휴대용 자식의 모습이었다

C : \ Users \ user \ AppData \ Local \ GitHub \ PortableGit_d7effa1a4a322478cd29c826b52a0c118ad3db11 \ cmd \ git.exe


여기에 이미지 설명 입력

설정> 프로젝트 설정> 버전 관리> git

Git 실행 가능 경로 : D : \ Program Files (x86) \ Git \ cmd \ git.cmd

여기에 이미지 설명 입력


예, 컴퓨터에 git을 설치해야하는 것 같습니다. 방금 github에서 프로젝트를 복제하려고했는데 다음과 같은 결과가 있습니다.

Cannot run program "git.exe" (in directory "C:\Users\Steve\Code"): CreateProcess error=2, The system cannot find the file specified

IntelliJ에 git.exe. 다음으로 이동하여 수행 할 수 있습니다.

Configure->Settings->Version Control->Git->Path to Git Excetuable

경로를 다음과 같이 변경합니다.

C:\Users\***YOUR_USER_NAME***\AppData\Local\GitHub\PortableGit_c7e0cbde92ba565cb218a521411d0e854079a28c\cmd\git.exe`

Windows에서는 먼저 Git을 설치해야합니다. git-for-windows.github.io 는 괜찮습니다. 그때

Configure->Settings->Version Control->Git-><browse for git.exe>

참조 URL : https://stackoverflow.com/questions/4581832/do-i-need-git-to-use-github-in-jetbrains-intellij-idea

반응형