I have multiple repos on my remote server like this:
sourcecode/
- repoA
- repoB
- repoC
Each time I have to work on the remote machine on a repo (say repoA), I do two things:
- ssh to remote-server
- cd sourcecode/repoA on remote
Instead of doing this all the time, I would like to be able to have an alias / function on my Mac such that when I do "ssh-with-fancy-function" and pass argument: repoA , it should ssh into the remote server and after that is complete, should change my current directory on the remote server to sourcecode/repoA and stay.
How can I do this ?