I have an alias that does an ssh
into a machine and executes 1 line of code as following:
alias posts-update= 'ssh [email protected] "cd /var/www/blog/posts && git pull"'
This works perfectly if executed manually but if I try to use the posts-update
alias, it does nothing and prints nothing
=
and the opening quote? gnu.org/software/bash/manual/bashref.html#index-aliasssh user@host git -C /var/www/blog/posts pull
.-C
option was added recently (in 1.8, I think?) so it might not always work. [I've seen systems with git 1.6…]