tags: jptw thesis technology bash

Notes for bash

Execute local script on remote machine

$ 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?
[2] git-pull-with-rebase-multi-repository-shell-script
[3] Bash script to automate Git pull