开发者

How to override command executor to a new version of Git under ~/bin my own against the old /usr/bin/git

I got a ssh account running on a shared hosting server without root permission, after I installed the latest stable Git release via git-scm.com by "make install", the new command is successful install unde开发者_如何学Gor my home directory which is ~/bin default automatically.

However, this new version of git seems only function with specify full path, otherwise by running command "git", it will only mapping to /usr/bin/git which is old one.

So, what should I do to correct this commend mapping issue? Thanks!


echo $PATH
export PATH=~/bin:$PATH

Path is where the shell goes to look for binaries. You need to make sure it looks in ~/bin before /usr/bin/git. Check with:

which git
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜