[英]Do I need Git to use Github in JetBrains IntelliJ IDEA?
JetBrains IntelliJ IDEA有2個插件: Git和Github 。 我是否需要在我的本地Windows機器上從http://git-scm.com安裝Git才能通過IntelliJ IDEA將我的文件上傳到GitHub?
我剛剛遇到了同樣的問題。
如果你選擇在安裝git(在Windows上)時不進行完整的PATH(環境變量)集成,你需要告訴IntelliJ在哪里找到git.cmd
; 你可以這樣做
Settings > Project Settings > Version Control > VCSs > Git
在我的情況下, 例如它是便攜式的git看起來像這樣在Windows
C:\\用戶\\用戶名\\應用程序數據\\本地\\ 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>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.