Friday 15 March 2013

Installing Git in PATH with GitHub client for Windows -



Installing Git in PATH with GitHub client for Windows -

how install git in path when using github client windows?

i'm running errors because apparently git not installed in path. example, using atom, trying install linter plugin gives error:

npm err! not found: git npm err! npm err! failed using git. npm err! not problem npm itself. npm err! please check if have git installed , in path.

does github windows install git when installs? (it must, otherwise how utilize git?) don't want double-install it... how add together git that's there path?

github windows indeed install own version of git, doesn't add together path variable, easy plenty do. here's instructions on how it:

get git url

we need url of git \cmd directory computer. git located here:

c:\users\<user>\appdata\local\github\portablegit_<guid>\cmd\git.exe

so on computer, replace <user> user , find out <guid> computer. (the guid may alter each time github updates portablegit, they're working on solution that.)

copy , paste command prompt (right-click > paste paste in terminal) verify works. should see git help response lists mutual git commands. if see the scheme cannot find path specified. url isn’t right. 1 time have right, create link directory using format:

;c:\users\<user>\appdata\local\github\portablegit_<guid>\cmd

(note: \cmd @ end, not \cmd\git.exe anymore!)

on system, it’s this, yours different:

;c:\users\brenton\appdata\local\github\portablegit_7eaa494e16ae7b397b2422033as45d8ff6ac2010\cmd

edit path variable

navigate environmental variables editor (instructions) , find path variable in “system variables” section. click edit… , paste url of git end of string. save! might easier pull notepad edit, create sure set one semicolon before paste in url. if doesn't work it’s because path got messed either space in there somewhere (should no spaces around semicolon) or semicolon @ end (semicolons should separate urls, no semicolon @ origin or end of string).

if worked, should able close & reopen terminal , type git , give same git help file. installing linter should work. (atom > file > settings > packages > linter)

git github github-for-windows

No comments:

Post a Comment