Created
October 12, 2012 11:06
-
-
Save reinier/3878708 to your computer and use it in GitHub Desktop.
remote connection + git pull
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh -t [email protected] 'cd /home/domain/public && git pull' |
for some reason the single quotes didn't work for me, this worked though, thanks!
alias sshPull="ssh -t [email protected] 'cd /home/domain/public && git pull'"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you can make an alias for it like this:
`alias sshPull='ssh -t [email protected] 'cd /home/domain/public && git pull''``
in your
.bash_profile