因为想快捷操作git;所以想用别名来解决结果无法实现:
然后再用 git pre 命令
并不会跳转到指定目录中
其他如 ls -a ;git pull等设置别名都没有问题唯独 cd 命令不行……
git alias is its own process, cd in the child process will not affect the parent process (your shell)
You can write a shell function or shell alias
git alias is its own process, cd in the child process will not affect the parent process (your shell)
You can write a shell function or shell alias