make GitX open via Terminal for the repo laying at the current path

百般思念 提交于 2019-12-05 02:34:16

Open terminal, navigate to the site directory and type this at the prompt:

$ open -a GitX .

--- edit ---

To make this change permanent, open your local .bashrc file:

$ vi ~/.bashrc

Add the following alias wherever you like:

alias gitx='open -a GitX .'

Save and exit, then reload the profile:

$ source ~/.bashrc

All done :) Now you should be able to just type gitx in the repo directory (in terminal) and voila, hope it helps.

There is a menu option for this in GitX.

GitX / Enable Terminal Usage…
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!