git branch --set-upstream-to <remote-branch>
# example
git branch --set-upstream-to origin feature-branch
# show up which remote branch a local branch is tracking
git branch -vvsets the default remote branch for the current local branch.
git branch --set-upstream-to <remote-branch>
# example
git branch --set-upstream-to origin feature-branch
# show up which remote branch a local branch is tracking
git branch -vvsets the default remote branch for the current local branch.
| #!/bin/sh | |
| # register a subdomain at https://www.duckdns.org/ to get your token | |
| # put 'hostname:token' in the 'Host Name' field under DDNS | |
| # e.g. myhost:abcdefgh-1234-5678-9876-f71b0ed7a7fe | |
| DDNS_HOSTNAME_FIELD=$(nvram get ddns_hostname_x) | |
| SUBDOMAIN=$(echo "$DDNS_HOSTNAME_FIELD" | awk -F':' '{print $1}') | |
| TOKEN=$(echo "$DDNS_HOSTNAME_FIELD" | awk -F':' '{print $2}') | |
| IPV4=$(nvram get wan0_ipaddr) |