Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using Git for Windows on Windows 7.

When I adjust the PATH environment variable, the changes would not be applied immediately for console windows.

In order to force applying the changes for a conventional console window, it's necessary to close and reopen the console.

But this doesn't work for Git Bash console window. Changes to PATH are applied in Git Bash only after reboot.

Questions:

  1. Why
  2. How do i force applying the changes in PATH for Git Bash without rebooting? Some command to run maybe?
share|improve this question
1  
Restarting Git Bash works for me. $ git --version => git version 1.8.0.msysgit.0 –  gronostaj Nov 7 '13 at 18:51
1  
Confirmed, restarting git bash works for me too –  Forza Nov 7 '13 at 21:25
add comment

1 Answer 1

Okay, my problem was that i was starting Git Bash from a file manager's context menu. Without being restarted, the file manager remembered the obsolete PATH and somehow transferred it to Git Bash.

Thanks to @gronostaj and @Forza for testing this issue.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.