###### tags: `jptw` `thesis` `technology` `bash` # Notes for bash ## Execute local script on remote machine ```shell $ run.sh #!/bin/bash repo="github.com/{user}/{project}.git" cd "path/to/repo" git pull "https://{username}:{password}@$repo" --rebase ``` > Ref: > [1] [How can I execute local script on remote machine and include arguments?](https://unix.stackexchange.com/questions/87405/how-can-i-execute-local-script-on-remote-machine-and-include-arguments) > [2] [git-pull-with-rebase-multi-repository-shell-script](https://gist.github.com/sunitparekh/fd056741bbe7a43cc4f0) > [3] [Bash script to automate Git pull](https://stackoverflow.com/questions/47339559/bash-script-to-automate-git-pull/47349643)