Because I want to operate git quickly; so I want to use aliases to solve the problem. The result cannot be achieved:
Then use the git pre command
It will not jump to the specified directory
Others such as ls -a; git pull, etc. have no problem setting aliases
Only the cd command does not work...
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