开发者

git - setting path variable

开发者 https://www.devze.com 2023-04-06 09:21 出处:网络
When I run the following command to change my path variable in the git bash - it works. After I\'ve run a few git-tfs commands it reverts back to the original setup.

When I run the following command to change my path variable in the git bash - it works.

After I've run a few git-tfs commands it reverts back to the original setup.

Is开发者_运维知识库 it possible to explain why?

$ PATH=$PATH:my git-tfs path goes here

To clarify, it works at first. But then the git-tfs commands stop working and it's because the folder it lives in no longer appears in the path.

EDIT: When I close the bash the changes are not saved.


Add it your .bash_profile so that it will be saved. So the contents will be something like:

PATH=$PATH:my git-tfs path goes here
export PATH
0

精彩评论

暂无评论...
验证码 换一张
取 消